r1464: the recent build changes completely lost the speed advantage of using
authorAndrew Tridgell <tridge@samba.org>
Mon, 12 Jul 2004 13:20:50 +0000 (13:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:32 +0000 (12:57 -0500)
PCH (in fact, it meant that PCH was a slowdown, not a speedup). To
gain speed with PCH you must ensure that the .gch file is compiled
with _exactly_ the same options as the normal object files.

this fixes the .gch build options
(This used to be commit 910ca1748648a58daaea6a04d5c96e6c62f79c40)

source4/build/smb_build/makefile.pl

index 7f05ed9bcdb6c27947755677ff657c1287857306..c04010d3d60db06c9f2ce72dc7275e8a9c2705f5 100644 (file)
@@ -839,7 +839,7 @@ sub _prepare_makefile_in($)
        $output .= _prepare_dummy_MAKEDIR();
 
        $output .= _prepare_std_CC_rule("c","o","\@PICFLAG\@","Compiling","Rule for std objectfiles");
-       $output .= _prepare_std_CC_rule("h","h.gch","","Precompiling","Rule for precompiled headerfiles");
+       $output .= _prepare_std_CC_rule("h","h.gch","\@PICFLAG\@","Precompiling","Rule for precompiled headerfiles");
 
        $output .= _prepare_obj_lists($CTX);