]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add hook for building LSB binaries.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 31 Jan 2013 16:21:50 +0000 (16:21 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 31 Jan 2013 16:21:50 +0000 (16:21 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10852 7a7537e8-13f0-0310-91df-b6672ffda945

config-scripts/cups-compiler.m4

index 24dc030bb9bb802c8bc3b0e9812cbbdd6d2aba8e..a7f66f8c28b0595fd8ca9a5d3d3d42d00fcaeaf3 100644 (file)
@@ -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"