From fd7ac5ad4c7c055d4fad6640c49ec7c852ad3053 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Jul 2004 13:20:50 +0000 Subject: r1464: the recent build changes completely lost the speed advantage of using 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/build') diff --git a/source4/build/smb_build/makefile.pl b/source4/build/smb_build/makefile.pl index 7f05ed9bcd..c04010d3d6 100644 --- a/source4/build/smb_build/makefile.pl +++ b/source4/build/smb_build/makefile.pl @@ -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); -- cgit