Blame SOURCES/boost-1.57.0-build-optflags.patch

e1f61e
diff -up ./tools/build/src/tools/gcc.jam~ ./tools/build/src/tools/gcc.jam
e1f61e
--- ./tools/build/src/tools/gcc.jam~	2015-02-09 15:01:04.850331626 +0100
e1f61e
+++ ./tools/build/src/tools/gcc.jam	2015-02-09 15:44:29.122307134 +0100
e1f61e
@@ -366,17 +366,17 @@ generators.override gcc.compile.c++.pch
e1f61e
 toolset.flags gcc.compile PCH_FILE <pch>on : <pch-file> ;
e1f61e
 
e1f61e
 # Declare flags and action for compilation.
e1f61e
-toolset.flags gcc.compile OPTIONS <optimization>off   : -O0 ;
e1f61e
-toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
e1f61e
-toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
e1f61e
+toolset.flags gcc.compile OPTIONS <optimization>off   :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <optimization>speed :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <optimization>space :  ;
e1f61e
 
e1f61e
-toolset.flags gcc.compile OPTIONS <inlining>off  : -fno-inline ;
e1f61e
-toolset.flags gcc.compile OPTIONS <inlining>on   : -Wno-inline ;
e1f61e
-toolset.flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
e1f61e
+toolset.flags gcc.compile OPTIONS <inlining>off  :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <inlining>on   :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <inlining>full :  ;
e1f61e
 
e1f61e
-toolset.flags gcc.compile OPTIONS <warnings>off : -w ;
e1f61e
-toolset.flags gcc.compile OPTIONS <warnings>on  : -Wall ;
e1f61e
-toolset.flags gcc.compile OPTIONS <warnings>all : -Wall -pedantic ;
e1f61e
+toolset.flags gcc.compile OPTIONS <warnings>off :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <warnings>on  :  ;
e1f61e
+toolset.flags gcc.compile OPTIONS <warnings>all :  ;
e1f61e
 toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
e1f61e
 
e1f61e
 toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
e1f61e
@@ -603,7 +603,7 @@ rule compile.fortran ( targets * : sourc
e1f61e
 
e1f61e
 actions compile.c++ bind PCH_FILE
e1f61e
 {
e1f61e
-    "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -c -o "$(<:W)" "$(>:W)"
e1f61e
+    "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -c -o "$(<:W)" "$(>:W)"
e1f61e
 }
e1f61e
 
e1f61e
 actions compile.c bind PCH_FILE
e1f61e
@@ -613,7 +613,7 @@ actions compile.c bind PCH_FILE
e1f61e
 
e1f61e
 actions compile.c++.preprocess bind PCH_FILE
e1f61e
 {
e1f61e
-    "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" "$(>:W)" -E >"$(<:W)"
e1f61e
+    "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" "$(>:W)" -E >"$(<:W)"
e1f61e
 }
e1f61e
 
e1f61e
 actions compile.c.preprocess bind PCH_FILE