From b5f3d04917c27a6d6997e2ef42f46630f235a3eb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 16 Jul 2011 22:23:13 +0200 Subject: [PATCH] config/functions: fix *flags filter Signed-off-by: Stephan Raue --- config/functions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/functions b/config/functions index 32c0c9d5b2..c7bb854ba8 100644 --- a/config/functions +++ b/config/functions @@ -140,19 +140,19 @@ do_autoreconf() { strip_lto() { # strip out LTO optimization from *FLAGS - CFLAGS=`echo $CFLAGS | sed -e "s|-flto||"` - CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||"` - LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||"` + CFLAGS=`echo $CFLAGS | sed -e "s|-flto||g"` + CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||g"` + LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||g"` } strip_linker_plugin() { # strip out usage from linker plugin - LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||"` + LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||g"` } strip_gold() { # strip out usage from GOLD linker strip_linker_plugin - LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||"` + LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||g"` }