diff options
author | mrauch <mrauch@pkgsrc.org> | 2002-02-12 14:59:59 +0000 |
---|---|---|
committer | mrauch <mrauch@pkgsrc.org> | 2002-02-12 14:59:59 +0000 |
commit | dd72eda632c205332e7d81eddfd587a98c509777 (patch) | |
tree | 5719448e53ab7da7686d1a5e4c71d05973e0646a /devel/pth | |
parent | 2d5d9a4cf625a98f0f3c9c8055accfb62b635e4e (diff) | |
download | pkgsrc-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/Makefile | 6 |
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 |