summaryrefslogtreecommitdiff
path: root/print/cups/patches/patch-ah
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2010-03-03 14:22:23 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2010-03-03 14:22:23 +0000
commit1ae76a20b02c4d07d133f402b81c43e356eb4e6b (patch)
treea3bb06dd4c0828144186c8443ef59a48c5dd909c /print/cups/patches/patch-ah
parente9c32f21bb8691429ef454917b007927e2fd2986 (diff)
downloadpkgsrc-1ae76a20b02c4d07d133f402b81c43e356eb4e6b.tar.gz
Make the configure check for -fstack-protector be a little more robust.
This fixes the build on NetBSD-5 with gcc-4.4.1.
Diffstat (limited to 'print/cups/patches/patch-ah')
-rw-r--r--print/cups/patches/patch-ah16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/cups/patches/patch-ah b/print/cups/patches/patch-ah
new file mode 100644
index 00000000000..c7cb2b79473
--- /dev/null
+++ b/print/cups/patches/patch-ah
@@ -0,0 +1,16 @@
+$NetBSD: patch-ah,v 1.16 2010/03/03 14:22:23 dmcmahill Exp $
+
+Some builds of gcc seem to support this for compiling but then fail during
+linking with undefined reference to `__stack_chk_fail_local'
+
+--- config-scripts/cups-compiler.m4.orig 2008-06-16 17:41:11.000000000 +0000
++++ config-scripts/cups-compiler.m4
+@@ -109,7 +109,7 @@ if test -n "$GCC"; then
+ AC_MSG_CHECKING(if GCC supports -fstack-protector)
+ OLDCFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -fstack-protector"
+- AC_TRY_COMPILE(,,
++ AC_TRY_LINK(, [return 0;],
+ OPTIM="$OPTIM -fstack-protector"
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no))