summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorwiz <wiz>2005-10-04 17:59:37 +0000
committerwiz <wiz>2005-10-04 17:59:37 +0000
commitb5f5e80b7e5cfc7fe2fc050639c30e2fe2e6eb69 (patch)
tree109f17025ab26ee28709f2aaac460bce8e965bea /security/gnupg
parent666adb38187da2448593487df256104c84306314 (diff)
downloadpkgsrc-b5f5e80b7e5cfc7fe2fc050639c30e2fe2e6eb69.tar.gz
security/gnupg has a build problem on sparc when you use any -mcpu
optimization flag, as was already described in this thread: http://mail-index.netbsd.org/port-sparc/2004/12/19/0001.html Thus, remove any -mcpu on sparc. From Geert Hendrickx in PR 31463.
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/hacks.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/gnupg/hacks.mk b/security/gnupg/hacks.mk
new file mode 100644
index 00000000000..c85166ae090
--- /dev/null
+++ b/security/gnupg/hacks.mk
@@ -0,0 +1,14 @@
+# $NetBS$
+
+.ifndef GNUPG_HACKS_MK
+GNUPG_HACKS_MK= #defined
+
+### workaround for a GCC optimizer bug on sparc:
+### drop any -mcpu flag
+###
+.if ${MACHINE_ARCH} == "sparc"
+PKG_HACKS+= mcpu
+BUILDLINK_TRANSFORM+= rm:-mcpu=.*
+.endif
+
+.endif