mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
19 lines
640 B
Plaintext
19 lines
640 B
Plaintext
$NetBSD: patch-ah,v 1.2 2015/09/05 13:03:22 jperkin 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 2011-09-09 17:28:58.000000000 +0000
|
|
+++ config-scripts/cups-compiler.m4
|
|
@@ -125,8 +125,9 @@ if test -n "$GCC"; then
|
|
AC_MSG_CHECKING(if GCC supports -fstack-protector)
|
|
OLDCFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -fstack-protector"
|
|
- AC_TRY_LINK(,,
|
|
+ AC_TRY_LINK(, [return 0;],
|
|
OPTIM="$OPTIM -fstack-protector"
|
|
+ LIBS="$LIBS $LIBS_SSP"
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT(no))
|
|
CFLAGS="$OLDCFLAGS"
|