Does anyone have any experience with Linux/GCC precompiled headers? I
found no difference (makefile mods attached) - each took exactly 2:11
(m:s).
Any ideas? Or is this a GCC rabbit hole?
Jeff
jeffrey@bruno:~/cryptopp$ cat GNUmakefile.diff
Index: GNUmakefile
===================================================================
--- GNUmakefile (revision 521)
+++ GNUmakefile (working copy)
@@ -131,9 +131,12 @@
TESTIMPORTOBJS = $(TESTOBJS:.o=.import.o)
DLLTESTOBJS = dlltest.dllonly.o
-all: cryptest.exe
+all: precompile cryptest.exe
-test: cryptest.exe
+precompile: pch.h
+ $(CXX) $(CXXFLAGS) pch.h -o pch.h.gch
+
+test: precompile cryptest.exe
./cryptest.exe v
clean:
@@ -153,7 +156,7 @@
libcryptopp.so: $(LIBOBJS)
$(CXX) -shared -o $@ $(LIBOBJS)
-cryptest.exe: libcryptopp.a $(TESTOBJS)
+cryptest.exe: precompile libcryptopp.a $(TESTOBJS)
$(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS)
nolib: $(OBJS) # makes it faster to test changes
Jason