summaryrefslogtreecommitdiff
path: root/print/cups
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-01-19 03:01:06 +0000
committersbd <sbd@pkgsrc.org>2011-01-19 03:01:06 +0000
commit4a3a3dae8ece95f94fec7ad9bf6ee0b442e05d27 (patch)
tree903ebea192b2afa3e17adc312bc4374eea860de0 /print/cups
parentf72b904badd3017971ed9d2c91d02694341a53f4 (diff)
downloadpkgsrc-4a3a3dae8ece95f94fec7ad9bf6ee0b442e05d27.tar.gz
Remove PIE flags from LDFLAGS on NetBSD/powerpc they cause runtime
problems in resultant binarys. Closes PR#43826. Thanks to joerg@ for suggesting it was the PIE flags.
Diffstat (limited to 'print/cups')
-rw-r--r--print/cups/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index 27d7b98232e..06490da018a 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.174 2011/01/13 13:36:06 wiz Exp $
+# $NetBSD: Makefile,v 1.175 2011/01/19 03:01:06 sbd Exp $
#
# The CUPS author is very good about taking back changes into the main
# CUPS distribution. The correct place to send patches or bug-fixes is:
@@ -138,6 +138,14 @@ SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g'
SUBST_STAGE.rpathfix= post-patch
+.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc)
+SUBST_CLASSES+= piefix
+SUBST_FILES.piefix= Makedefs.in
+SUBST_MESSAGE.piefix= Removing PIE flags
+SUBST_SED.piefix= -e 's|@PIEFLAGS@||g'
+SUBST_STAGE.piefix= post-patch
+.endif
+
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR}
INSTALL_ENV+= DSTROOT=${DESTDIR}