diff options
author | cjep <cjep@pkgsrc.org> | 2002-06-07 08:17:33 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2002-06-07 08:17:33 +0000 |
commit | c282139ca8d6e8bfe167643d581abac450208180 (patch) | |
tree | 08daebb96ed28af1e5542c30924dcc9b6edda49b /databases | |
parent | 3de5ba7c5e6be717a290fea50f67a8b278598f79 (diff) | |
download | pkgsrc-c282139ca8d6e8bfe167643d581abac450208180.tar.gz |
Turn off optimization on NetBSD/arm. Having it on causes a hang in compilation.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/cdb/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/databases/cdb/Makefile b/databases/cdb/Makefile index 003289af23d..2e997d542f1 100644 --- a/databases/cdb/Makefile +++ b/databases/cdb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2002/05/19 19:37:50 cjep Exp $ +# $NetBSD: Makefile,v 1.4 2002/06/07 08:17:33 cjep Exp $ DISTNAME= cdb-0.75 CATEGORIES= databases @@ -11,8 +11,10 @@ COMMENT= creates and reads constant databases ALL_TARGET= it INSTALL_TARGET= setup check -.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 pre-build: |