diff options
author | cjep <cjep@pkgsrc.org> | 2002-06-03 12:17:54 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2002-06-03 12:17:54 +0000 |
commit | e5815f25a82f82a24f32857eb3284a07ed5ae2d9 (patch) | |
tree | e631f45c17c2d27450f441f2a2fb9e39193d6c92 /net/djbdns | |
parent | 0fda36a1525a5b61e3be23fb280ab99353d902b7 (diff) | |
download | pkgsrc-e5815f25a82f82a24f32857eb3284a07ed5ae2d9.tar.gz |
Turn off optimization -O2 on NetBSD arm platforms so that this package
builds.
Diffstat (limited to 'net/djbdns')
-rw-r--r-- | net/djbdns/Makefile | 8 |
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: |