From: mike Date: Thu, 31 Jan 2013 16:21:50 +0000 (+0000) Subject: Add hook for building LSB binaries. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c246cf24842fcd1e0eaf832047aa2726fcf26a1;p=thirdparty%2Fcups.git Add hook for building LSB binaries. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10852 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4 index 24dc030bb9..a7f66f8c28 100644 --- a/config-scripts/cups-compiler.m4 +++ b/config-scripts/cups-compiler.m4 @@ -114,7 +114,12 @@ if test -n "$GCC"; then OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector" AC_TRY_LINK(,, - OPTIM="$OPTIM -fstack-protector" + if test "x$LSB_BUILD" = xy; then + # Can't use stack-protector with LSB binaries... + OPTIM="$OPTIM -fno-stack-protector" + else + OPTIM="$OPTIM -fstack-protector" + fi AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) CFLAGS="$OLDCFLAGS"