diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-25 12:11:55 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-25 12:11:55 +0000 |
commit | 97c8e143c8efdf44e53acdefe6b31fbafb72e55b (patch) | |
tree | da966cf01cb89533a452155480a98a46e1e04429 /print/cups | |
parent | 194323171dd9176500d19e00e2543aa2d12f50a5 (diff) | |
download | pkgsrc-97c8e143c8efdf44e53acdefe6b31fbafb72e55b.tar.gz |
Test for PIE by linking rather than just compiling, as on at least SunOS
it is dependent on linker features.
Diffstat (limited to 'print/cups')
-rw-r--r-- | print/cups/distinfo | 4 | ||||
-rw-r--r-- | print/cups/patches/patch-config-scripts_cups-compiler.m4 | 26 |
2 files changed, 25 insertions, 5 deletions
diff --git a/print/cups/distinfo b/print/cups/distinfo index a5c3f5f994b..7fa2e68f1ff 100644 --- a/print/cups/distinfo +++ b/print/cups/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.121 2017/04/08 07:27:09 adam Exp $ +$NetBSD: distinfo,v 1.122 2017/05/25 12:11:55 jperkin Exp $ SHA1 (cups-2.2.3-source.tar.gz) = 149e9ded0744b7545630c62b6a347e747928e0f7 RMD160 (cups-2.2.3-source.tar.gz) = 3eb91fbd20bee081e08af64ddfa23a45f2bfa7b2 @@ -9,7 +9,7 @@ SHA1 (patch-af) = 6ae6ae6006387db69bf7c15f7c8500708c9e8f56 SHA1 (patch-ai) = 2c1ca67ea6f6c1dedb4c8ff97736f328a2b9a7c6 SHA1 (patch-at) = ef6303936daf0826dc4725f5369bfb1add832b1f SHA1 (patch-conf_Makefile) = bb8313e493c02959edfe1e53f50b9f16ce6f42e0 -SHA1 (patch-config-scripts_cups-compiler.m4) = 5984c94c154ac732d97c0af26fc4099a7889096f +SHA1 (patch-config-scripts_cups-compiler.m4) = 6b825d05163a91ee3092a68a3b0abc173a378026 SHA1 (patch-config-scripts_cups-directories.m4) = 1daa2b6237d3675665f273678271b7b522905c8d SHA1 (patch-config-scripts_cups-gssapi.m4) = 0f7e4c35473e6117d2fe103750eda820b6fade55 SHA1 (patch-config-scripts_cups-manpages.m4) = cc920bf46555aab5610e91de4ca1f69916f5b79a diff --git a/print/cups/patches/patch-config-scripts_cups-compiler.m4 b/print/cups/patches/patch-config-scripts_cups-compiler.m4 index 90bec10ee37..ffa73587915 100644 --- a/print/cups/patches/patch-config-scripts_cups-compiler.m4 +++ b/print/cups/patches/patch-config-scripts_cups-compiler.m4 @@ -1,11 +1,13 @@ -$NetBSD: patch-config-scripts_cups-compiler.m4,v 1.2 2015/12/02 21:14:16 leot Exp $ +$NetBSD: patch-config-scripts_cups-compiler.m4,v 1.3 2017/05/25 12:11:55 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 2015-06-23 14:48:53.000000000 +0000 +PIE needs to be tested with linking. + +--- config-scripts/cups-compiler.m4.orig 2017-03-28 18:26:53.000000000 +0000 +++ config-scripts/cups-compiler.m4 -@@ -113,12 +113,13 @@ if test -n "$GCC"; then +@@ -111,12 +111,13 @@ if test -n "$GCC"; then AC_MSG_CHECKING(whether compiler supports -fstack-protector) OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector" @@ -20,3 +22,21 @@ linking with undefined reference to `__stack_chk_fail_local' fi AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) +@@ -133,7 +134,7 @@ if test -n "$GCC"; then + case "$uname" in + Darwin*) + CFLAGS="$CFLAGS -fPIE -Wl,-pie" +- AC_TRY_COMPILE(,,[ ++ AC_TRY_LINK(,,[ + PIEFLAGS="-fPIE -Wl,-pie" + AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no)) +@@ -141,7 +142,7 @@ if test -n "$GCC"; then + + *) + CFLAGS="$CFLAGS -fPIE -pie" +- AC_TRY_COMPILE(,,[ ++ AC_TRY_LINK(,,[ + PIEFLAGS="-fPIE -pie" + AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no)) |