aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-12-16 10:31:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-12-16 10:31:25 +0000
commit2aa0c6c4888a6593df588db9e1e7a84c7f379f56 (patch)
tree05f0b2aae722123f98bc69fd7d469d89ea071c7f
parent811138386fce459253eeb0fb34e9aa512631c350 (diff)
cut off -O properly when building for debug
setup the Makefile in tests/libtest/
-rw-r--r--configure.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 4e452c2e8..31cbee6a2 100644
--- a/configure.in
+++ b/configure.in
@@ -758,7 +758,18 @@ AC_ARG_ENABLE(debug,
CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs"
fi
dnl strip off optimizer flags
- CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9 ]//g'`
+ NEWFLAGS=""
+ for flag in $CFLAGS; do
+ case "$flag" in
+ -O*)
+ dnl echo "cut off $flag"
+ ;;
+ *)
+ NEWFLAGS="$NEWFLAGS $flag"
+ ;;
+ esac
+ done
+ CFLAGS=$NEWFLAGS
;;
esac ],
AC_MSG_RESULT(no)
@@ -775,6 +786,7 @@ AC_CONFIG_FILES([Makefile \
tests/Makefile \
tests/data/Makefile \
tests/server/Makefile \
+ tests/libtest/Makefile \
packages/Makefile \
packages/Win32/Makefile \
packages/Win32/cygwin/Makefile \