summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrauch <mrauch@pkgsrc.org>2002-02-12 15:18:46 +0000
committermrauch <mrauch@pkgsrc.org>2002-02-12 15:18:46 +0000
commita0db7319fcf6ec5d439f7fa50d671dba41d67ef6 (patch)
tree18a91c0006ea2867cbaaad0a6ebba249a5aa5b0f
parent88f51bef2e082783be0e382831038ac737df0779 (diff)
downloadpkgsrc-a0db7319fcf6ec5d439f7fa50d671dba41d67ef6.tar.gz
The check whether ${CFLAGS} contains -O2 didn't catch the case of
multiple flags given in ${CFLAGS}. Fixed.
-rw-r--r--net/ucspi-tcp/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ucspi-tcp/Makefile b/net/ucspi-tcp/Makefile
index 23b4fbf0499..22075ec40f8 100644
--- a/net/ucspi-tcp/Makefile
+++ b/net/ucspi-tcp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/10/22 13:51:06 zuntum Exp $
+# $NetBSD: Makefile,v 1.9 2002/02/12 15:18:46 mrauch Exp $
# FreeBSD Id: ports/sysutils/ucspi-tcp/Makefile,v 1.12 2000/07/10 01:41:24 steve Exp
DISTNAME= ucspi-tcp-0.88
@@ -20,8 +20,8 @@ NO_BIN_ON_FTP= ${RESTRICTED}
ALL_TARGET= it
INSTALL_TARGET= setup check
-.if (${MACHINE_ARCH} == "arm32" && ${CFLAGS} == "-O2")
-CFLAGS= -O0
+.if (${MACHINE_ARCH} == "arm32" && ${CFLAGS:M-O2} == "-O2")
+CFLAGS:= ${CFLAGS:S/-O2/-O0/}
.endif
post-configure: