[Lunar-commits] <lunar> strip _all_ occurances of bad flags
v4hn
v4hn at lunar-linux.org
Mon Oct 13 21:35:50 CEST 2014
commit 5e838b8a46f3b0d921759e79b462b1229e7559fd
Author: v4hn <v4hn at lunar-linux.org>
Date: Mon, 13 Oct 2014 09:28:59 +0200
URL: https://github.com/lunar-linux/lunar/commit/5e838b8a46f3b0d921759e79b462b1229e7559fd
strip _all_ occurances of bad flags
---
libs/optimize.lunar | +4/-4
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/libs/optimize.lunar
+++ b/libs/optimize.lunar
@@ -24,10 +24,10 @@ bad_flags()
unset LDFLAGS
else
for BAD_FLAG in "$@" ; do
- CFLAGS=$(echo $CFLAGS | sed "s/$BAD_FLAG//")
- CXXFLAGS=$(echo $CXXFLAGS | sed "s/$BAD_FLAG//")
- CPPFLAGS=$(echo $CPPFLAGS | sed "s/$BAD_FLAG//")
- LDFLAGS=$(echo $LDFLAGS | sed "s/$BAD_FLAG//")
+ CFLAGS=$(echo $CFLAGS | sed "s/$BAD_FLAG//g")
+ CXXFLAGS=$(echo $CXXFLAGS | sed "s/$BAD_FLAG//g")
+ CPPFLAGS=$(echo $CPPFLAGS | sed "s/$BAD_FLAG//g")
+ LDFLAGS=$(echo $LDFLAGS | sed "s/$BAD_FLAG//g")
done
fi
}
More information about the Lunar-commits
mailing list