--- boost_1_67_0/tools/build/src/tools/gcc.jam.orig 2018-04-11 15:49:09.000000000 +0200 +++ boost_1_67_0/tools/build/src/tools/gcc.jam 2018-07-16 19:40:36.332045183 +0200 @@ -356,11 +356,6 @@ compile-link-flags hpux/32 : -milp32 ; compile-link-flags hpux/64 : -mlp64 ; - - local generic-os = [ set.difference $(all-os) : aix hpux ] ; - local arch = power sparc x86 ; - compile-link-flags $(generic-os)/$(arch)/32 : -m32 ; - compile-link-flags $(generic-os)/$(arch)/64 : -m64 ; } { @@ -624,9 +619,9 @@ ### # Declare flags and action for compilation. -toolset.flags gcc.compile OPTIONS off : -O0 ; -toolset.flags gcc.compile OPTIONS speed : -O3 ; -toolset.flags gcc.compile OPTIONS space : -Os ; +toolset.flags gcc.compile OPTIONS off : ; +toolset.flags gcc.compile OPTIONS speed : ; +toolset.flags gcc.compile OPTIONS space : ; toolset.flags gcc.compile OPTIONS off : -fno-inline ; toolset.flags gcc.compile OPTIONS on : -Wno-inline ; @@ -637,8 +632,8 @@ toolset.flags gcc.compile OPTIONS all : -Wall -pedantic ; toolset.flags gcc.compile OPTIONS on : -Werror ; -toolset.flags gcc.compile OPTIONS on : -g ; -toolset.flags gcc.compile OPTIONS on : -pg ; +toolset.flags gcc.compile OPTIONS on : ; +toolset.flags gcc.compile OPTIONS on : ; toolset.flags gcc.compile.c++ OPTIONS off : -fno-rtti ; toolset.flags gcc.compile.c++ OPTIONS off : -fno-exceptions ; @@ -1069,7 +1064,7 @@ # x86 and compatible # The 'native' option appeared in gcc 4.2 so we cannot safely use it as default. # Use i686 instead for 32-bit. -toolset.flags gcc OPTIONS x86/32/ : -march=i686 ; +toolset.flags gcc OPTIONS x86/32/ : ; cpu-flags gcc OPTIONS : x86 : native : -march=native ; cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ; cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ;