summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnoebe <schnoebe>2013-01-26 21:25:12 +0000
committerschnoebe <schnoebe>2013-01-26 21:25:12 +0000
commitba20683e95163088b361a0c628a0bd0c4623759a (patch)
treed54ec91f72543f782025ad8cb05537bb84f2cdde
parent666fb5d1eba6405ccfd9549d504c0e48028728f1 (diff)
downloadpkgsrc-ba20683e95163088b361a0c628a0bd0c4623759a.tar.gz
trying to use -O2 on alpha does not work.. :( Drop back to -O1.
-rw-r--r--net/udns/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/udns/Makefile b/net/udns/Makefile
index 5197a8bee72..14e22bc1aad 100644
--- a/net/udns/Makefile
+++ b/net/udns/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2012/10/23 17:19:15 asau Exp $
+# $NetBSD: Makefile,v 1.7 2013/01/26 21:25:12 schnoebe Exp $
DISTNAME= udns-0.2
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.corpit.ru/mjt/udns/
@@ -33,3 +33,11 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/rblcheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"
+
+# gcc on NetBSD botch's if (!<ptr>) tests at -O2. (or higher)
+.if ${OPSYS} == "NetBSD"
+. if ${MACHINE_ARCH} == "alpha"
+BUILDLINK_TRANSFORM+= opt:-O[2-9]:-O1
+# BUILDLINK_TRANSFORM+= rm:-O[2-9]
+. endif
+.endif