From d4d3de2a5b3eea21afe294aa58bec2dad0dc353e Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 28 May 2003 07:23:05 +0000 Subject: [PATCH] Strip binaries when no debug symbols are needed. [SVN r18577] --- new/gcc.jam | 3 +++ v2/gcc.jam | 3 +++ 2 files changed, 6 insertions(+) diff --git a/new/gcc.jam b/new/gcc.jam index 5be0314bc..1c61743bc 100644 --- a/new/gcc.jam +++ b/new/gcc.jam @@ -79,6 +79,8 @@ actions compile # 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 ; flags gcc.link OPTIONS on : -pg ; flags gcc.link OPTIONS ; flags gcc.link LINKPATH ; @@ -108,6 +110,7 @@ actions piecemeal archive # Declare flags and action for linking shared libraries flags gcc.link-dll OPTIONS on : -g ; +flags gcc.link-dll OPTIONS off : -s ; flags gcc.link-dll OPTIONS on : -pg ; flags gcc.link-dll OPTIONS ; flags gcc.link-dll LINKPATH ; diff --git a/v2/gcc.jam b/v2/gcc.jam index 5be0314bc..1c61743bc 100644 --- a/v2/gcc.jam +++ b/v2/gcc.jam @@ -79,6 +79,8 @@ actions compile # 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 ; flags gcc.link OPTIONS on : -pg ; flags gcc.link OPTIONS ; flags gcc.link LINKPATH ; @@ -108,6 +110,7 @@ actions piecemeal archive # Declare flags and action for linking shared libraries flags gcc.link-dll OPTIONS on : -g ; +flags gcc.link-dll OPTIONS off : -s ; flags gcc.link-dll OPTIONS on : -pg ; flags gcc.link-dll OPTIONS ; flags gcc.link-dll LINKPATH ;