aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-11 06:23:02 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-11 06:23:02 +0000
commite76e62fd39c4ea793a16b3c9fdf5af88b64bec12 (patch)
tree5e2151b4e97e1562274e298e8e86b26f79862cda /configure.ac
parentlibsandbox: catch fchownat and fchmodat (diff)
downloadsandbox-e76e62fd39c4ea793a16b3c9fdf5af88b64bec12.tar.gz
sandbox-e76e62fd39c4ea793a16b3c9fdf5af88b64bec12.tar.bz2
sandbox-e76e62fd39c4ea793a16b3c9fdf5af88b64bec12.zip
move build flags to configure rather than Makefile
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f142cb7..5235aae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,11 @@ dnl the variables ($sysconfdir defaults to "$prefix/etc")
SANDBOX_DEFINES='-DETCDIR="\"$(sysconfdir)\"" -DLIBSANDBOX_PATH="\"$(libdir)\"" -DSANDBOX_BASHRC_PATH="\"$(pkgdatadir)\""'
AC_SUBST([SANDBOX_DEFINES])
+CPPFLAGS="$CPPFLAGS -D_REENTRANT"
+if test "$GCC" = yes; then
+ CFLAGS="$CFLAGS -Wall"
+fi
+
AC_OUTPUT([
Makefile
scripts/Makefile