diff options
Diffstat (limited to 'databases/cdb/Makefile')
-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: |