aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2012-06-26 13:54:05 +0200
committerJan Engelhardt <jengelh@inai.de>2012-07-03 01:24:42 +0200
commitfbe46eac3e5638034f73bba5f55475170843b172 (patch)
tree74c3bf4a9721531ca1e701f8360ac64142644e46 /configure.ac
parentb7b0facdedceb051241cd4ae9154f7e640e30fa1 (diff)
downloadbindfs-fbe46eac3e5638034f73bba5f55475170843b172.tar.gz
build: do not change CFLAGS
CFLAGS must not be touched: it is a user variable. Your previous way of doing it meant that `export CFLAGS="-O1"; ./configure;` never had any effect.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 94e2d8b..b618654 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,9 +17,9 @@ AC_ARG_WITH([core-foundation],
if test x"$enable_debug" == "xyes" ; then
- CFLAGS="${CFLAGS} -g -O0"
+ my_CFLAGS="-g -O0"
else
- CFLAGS="${CFLAGS} -O2"
+ my_CFLAGS="-O2"
fi
if test x"$enable_debug_output" == "xyes" ; then
@@ -31,7 +31,10 @@ if test x"$with_core_foundation" == "xyes" ; then
LDFLAGS="${LDFLAGS} -framework CoreFoundation"
fi
-CFLAGS="${CFLAGS} -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25"
+my_CPPFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25"
+my_CFLAGS="$my_CFLAGS -Wall"
+AC_SUBST([my_CPPFLAGS])
+AC_SUBST([my_CFLAGS])
# Check for xattrs
AC_CHECK_FUNCS([setxattr getxattr listxattr removexattr])