summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authormrauch <mrauch@pkgsrc.org>2002-02-12 14:59:59 +0000
committermrauch <mrauch@pkgsrc.org>2002-02-12 14:59:59 +0000
commitdd72eda632c205332e7d81eddfd587a98c509777 (patch)
tree5719448e53ab7da7686d1a5e4c71d05973e0646a /devel/pth
parent2d5d9a4cf625a98f0f3c9c8055accfb62b635e4e (diff)
downloadpkgsrc-dd72eda632c205332e7d81eddfd587a98c509777.tar.gz
The check for -O2 in the last commit didn't catch the possibility of
multiple flags in ${CFLAGS}. Fixed.
Diffstat (limited to 'devel/pth')
-rw-r--r--devel/pth/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile
index df9bdb826f1..ac70ba0070a 100644
--- a/devel/pth/Makefile
+++ b/devel/pth/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2002/02/12 10:52:31 mrauch Exp $
+# $NetBSD: Makefile,v 1.38 2002/02/12 14:59:59 mrauch Exp $
#
DISTNAME= pth-1.4.0
@@ -17,8 +17,8 @@ USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-pthread
-.if (${MACHINE_ARCH} == "i386" && ${CFLAGS} == "-O2")
-CFLAGS= -O0
+.if (${MACHINE_ARCH} == "i386" && ${CFLAGS:M-O2} == "-O2")
+CFLAGS:= ${CFLAGS:S/-O2/-O0/}
.endif
# for PLIST