summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorcjep <cjep>2002-06-03 12:17:54 +0000
committercjep <cjep>2002-06-03 12:17:54 +0000
commit6eae84fb8702400781c80474c978ab26c6484267 (patch)
treee631f45c17c2d27450f441f2a2fb9e39193d6c92 /net
parent58d11bf107a3f2be5023d8feb9d7592690483654 (diff)
downloadpkgsrc-6eae84fb8702400781c80474c978ab26c6484267.tar.gz
Turn off optimization -O2 on NetBSD arm platforms so that this package
builds.
Diffstat (limited to 'net')
-rw-r--r--net/djbdns/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/djbdns/Makefile b/net/djbdns/Makefile
index f3835250482..cab2d872fdb 100644
--- a/net/djbdns/Makefile
+++ b/net/djbdns/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2002/05/13 14:36:39 yyamano Exp $
+# $NetBSD: Makefile,v 1.19 2002/06/03 12:17:54 cjep Exp $
# FreeBSD Id: ports/net/djbdns/Makefile,v 1.4 2000/09/28 18:18:41 nbm Exp
DISTNAME= djbdns-1.05
@@ -33,8 +33,10 @@ INSTALL_TARGET= setup check
MANVERSION= 20010212
-.if (${MACHINE_ARCH} == "arm32" && ${CFLAGS} == "-O2")
-CFLAGS= -O0
+.if (${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "arm")
+.if (${CFLAGS:M-O2} == "-O2")
+CFLAGS:= ${CFLAGS:S/-O2/-O0/}
+.endif
.endif
post-extract: