1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 10:13:12 +02:00

Fix bug with system clfags when there's "-g" in option name, like "-mpowerpc-gfxopt"

This commit is contained in:
Sebastien Helleu
2008-06-17 17:04:55 +02:00
parent a96f0b53fd
commit 47c9c68b40
+4 -1
View File
@@ -842,7 +842,10 @@ else
AC_MSG_RESULT(no)
fi
CFLAGS=`echo $CFLAGS | sed s/-g//g`
CFLAGS=`echo $CFLAGS | sed 's/ -g //g'`
CFLAGS=`echo $CFLAGS | sed 's/^-g //g'`
CFLAGS=`echo $CFLAGS | sed 's/ -g$//g'`
CFLAGS=`echo $CFLAGS | sed 's/^-g$//g'`
if test "x$debug" = "x0" ; then
CFLAGS="$COMMON_CFLAGS $CFLAGS"
else