1 --- a/tools/build/v2/tools/gcc.jam
2 +++ b/tools/build/v2/tools/gcc.jam
3 @@ -292,7 +292,7 @@ toolset.flags gcc.compile PCH_FILE <pch>on : <pch-file> ;
5 # Declare flags and action for compilation.
6 toolset.flags gcc.compile OPTIONS <optimization>off : -O0 ;
7 -toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
8 +toolset.flags gcc.compile OPTIONS <optimization>speed : ;
9 toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
11 toolset.flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
12 @@ -598,7 +598,7 @@ rule init-link-flags ( toolset linker condition )
13 # as opposed to -s since icc (intel's compiler) is generally
14 # option-compatible with and inherits from the gcc toolset, but does not
16 - toolset.flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off : -Wl,--strip-all : unchecked ;
17 + toolset.flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off : : unchecked ;
18 toolset.flags $(toolset).link RPATH $(condition) : <dll-path> : unchecked ;
19 toolset.flags $(toolset).link RPATH_LINK $(condition) : <xdll-path> : unchecked ;
20 toolset.flags $(toolset).link START-GROUP $(condition) : -Wl,--start-group : unchecked ;
21 --- a/tools/jam/src/build.jam
22 +++ b/tools/jam/src/build.jam
23 @@ -176,7 +176,7 @@ toolset darwin cc : "-o " : -D
25 toolset gcc gcc : "-o " : -D
26 : -pedantic -fno-strict-aliasing
27 - [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
29 [ opt --debug : -g -O0 -fno-inline ]
30 -I$(--python-include) -I$(--extra-include) -Wno-long-long
31 : -L$(--python-lib[1]) -l$(--python-lib[2]) ;