aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-29 15:56:11 -0500
committerMike Frysinger <vapier@gentoo.org>2008-12-29 15:56:11 -0500
commit9aaa71aa4196395a638015363f9dd465d2dbd086 (patch)
tree92c6290aa37889e7645a3e8709a8f912a0f2e3ea
parentlibsandbox: run awk scripts in C locale (diff)
downloadsandbox-9aaa71aa4196395a638015363f9dd465d2dbd086.tar.gz
sandbox-9aaa71aa4196395a638015363f9dd465d2dbd086.tar.bz2
sandbox-9aaa71aa4196395a638015363f9dd465d2dbd086.zip
configure: improve -static detection
Some build flags contain "-static" in the middle of it, so make sure our -static detection code only finds words named -static rather than partial strings. URL: http://bugs.gentoo.org/253021 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Gordon Schumacher <gordon@rebit.com>
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5883d85..a3019c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,10 +147,10 @@ fi
if test x"$enable_shared" != xyes ; then
AC_MSG_ERROR([dont be a Kumba, omitting a libsandbox.so is stupid])
fi
-if echo $CFLAGS | $EGREP -e -static >/dev/null 2>&1; then
+if echo " $CFLAGS " | $EGREP ' -static ' >/dev/null 2>&1; then
AC_MSG_ERROR([dont be a Kumba, using -static in CFLAGS is stupid])
fi
-if echo $LDFLAGS | $EGREP -e -static >/dev/null 2>&1; then
+if echo " $LDFLAGS " | $EGREP ' -static ' >/dev/null 2>&1; then
AC_MSG_ERROR([dont be a Kumba, using -static in LDFLAGS is stupid])
fi