pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/cups Test for PIE by linking rather than just co...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9eb426bac41b
branches: trunk
changeset: 362788:9eb426bac41b
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu May 25 12:11:55 2017 +0000
description:
Test for PIE by linking rather than just compiling, as on at least SunOS
it is dependent on linker features.
diffstat:
print/cups/distinfo | 4 +-
print/cups/patches/patch-config-scripts_cups-compiler.m4 | 26 ++++++++++++++-
2 files changed, 25 insertions(+), 5 deletions(-)
diffs (60 lines):
diff -r a7a280e67279 -r 9eb426bac41b print/cups/distinfo
--- a/print/cups/distinfo Thu May 25 11:49:05 2017 +0000
+++ b/print/cups/distinfo Thu May 25 12:11:55 2017 +0000
@@ -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-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 -r a7a280e67279 -r 9eb426bac41b print/cups/patches/patch-config-scripts_cups-compiler.m4
--- a/print/cups/patches/patch-config-scripts_cups-compiler.m4 Thu May 25 11:49:05 2017 +0000
+++ b/print/cups/patches/patch-config-scripts_cups-compiler.m4 Thu May 25 12:11:55 2017 +0000
@@ -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 @@
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))
Home |
Main Index |
Thread Index |
Old Index