diff options
author | mrauch <mrauch> | 2002-02-12 14:59:59 +0000 |
---|---|---|
committer | mrauch <mrauch> | 2002-02-12 14:59:59 +0000 |
commit | 4fc45ebd10c9f1ba79408319582b6a7ec08ad44f (patch) | |
tree | 5719448e53ab7da7686d1a5e4c71d05973e0646a /devel/pth | |
parent | 1c29a9cc51f898e0c797c74533ffa8fcd94be920 (diff) | |
download | pkgsrc-4fc45ebd10c9f1ba79408319582b6a7ec08ad44f.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 |