From 2ac7c7d4cfdd05865afb0a3bceead85340eefea7 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Sat, 29 Sep 2012 10:02:55 +0100 Subject: [PATCH] Optimize compilation of cre.cpp 1. Remove unused "-lsdtc++" from the compilation stage as no linking is done then. 2. Add our standard CFLAGS to the compilation of cre.cpp which brings in -O3 -march=armv6 which enables optimizations. It seemed strange that we compile a cpp file with gcc (as opposed to g++), but I left it as is for now. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 94e85cbb9..8fbfdf058 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,7 @@ djvu.o: %.o: %.c $(CC) -c $(KPDFREADER_CFLAGS) -I$(DJVUDIR)/ $< -o $@ cre.o: %.o: %.cpp - $(CC) -c -I$(CRENGINEDIR)/crengine/include/ -I$(LUADIR)/src $< -o $@ -lstdc++ + $(CC) -c $(CFLAGS) -I$(CRENGINEDIR)/crengine/include/ -I$(LUADIR)/src $< -o $@ lfs.o: $(LFSDIR)/src/lfs.c $(CC) -c $(CFLAGS) -I$(LUADIR)/src -I$(LFSDIR)/src $(LFSDIR)/src/lfs.c -o $@