diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 2b694fc22..cad3a8ea0 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -110,7 +110,10 @@ actions compile.c # Declare flags and action for linking flags gcc.link OPTIONS on : -g ; # Strip the binary when no debugging is needed. -flags gcc.link OPTIONS off : -s ; +# We use --strip-all flag as opposed to -s since icc +# (intel's compiler) is generally option-compatible with +# and inherits from gcc toolset, but does not support -s +flags gcc.link OPTIONS off : -Wl,--strip-all ; flags gcc.link OPTIONS on : -pg ; flags gcc.link OPTIONS ; flags gcc.link LINKPATH ;