summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-11-05 21:05:32 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-11-05 21:05:32 +0000
commitcf9d394e3a661e1c19df502a51fafe5d01cfab46 (patch)
tree62f53fdfcc947308f812ed02f9b00507c91fad94
parent0955167b6b4c59cd40293f0cd03de21c45f1c859 (diff)
downloadweechat-cf9d394e3a661e1c19df502a51fafe5d01cfab46.zip
Modified CFLAGS management (can now be customized)
-rw-r--r--configure.in8
-rw-r--r--weechat/configure.in8
2 files changed, 12 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 3715e0310..f225a2167 100644
--- a/configure.in
+++ b/configure.in
@@ -108,10 +108,14 @@ fi
AC_SUBST(PLUGINS_LIBS)
+CFLAGS=`echo $CFLAGS | sed s/-g//g`
+if test "x$CFLAGS" = "x" ; then
+ CFLAGS="-O2"
+fi
if test "x$debug" = "x1" || test "x$debug" = "x2" ; then
- CFLAGS="-Wall -W -pipe -O2 -g"
+ CFLAGS="-Wall -W $CFLAGS -pipe -g"
else
- CFLAGS="-Wall -W -pipe -O2"
+ CFLAGS="-Wall -W $CFLAGS -pipe"
fi
if test "x$debug" = "x2" ; then
diff --git a/weechat/configure.in b/weechat/configure.in
index 3715e0310..f225a2167 100644
--- a/weechat/configure.in
+++ b/weechat/configure.in
@@ -108,10 +108,14 @@ fi
AC_SUBST(PLUGINS_LIBS)
+CFLAGS=`echo $CFLAGS | sed s/-g//g`
+if test "x$CFLAGS" = "x" ; then
+ CFLAGS="-O2"
+fi
if test "x$debug" = "x1" || test "x$debug" = "x2" ; then
- CFLAGS="-Wall -W -pipe -O2 -g"
+ CFLAGS="-Wall -W $CFLAGS -pipe -g"
else
- CFLAGS="-Wall -W -pipe -O2"
+ CFLAGS="-Wall -W $CFLAGS -pipe"
fi
if test "x$debug" = "x2" ; then