pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/gnupg security/gnupg has a build problem on s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d469f7b6264
branches:  trunk
changeset: 500244:2d469f7b6264
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Oct 04 17:59:37 2005 +0000

description:
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:

 security/gnupg/hacks.mk |  14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 8f446c187a98 -r 2d469f7b6264 security/gnupg/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gnupg/hacks.mk   Tue Oct 04 17:59:37 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index