diff options
author | jlam <jlam> | 2004-02-10 00:55:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-10 00:55:17 +0000 |
commit | b5ae7827f1a92a4c2af4d2030b2dc106f407eea4 (patch) | |
tree | 74cd4adf72ff018c96845eb26ec2d274398099f0 | |
parent | 1a03c918426b15432e5d32a24a6398d1d5e8ac2a (diff) | |
download | pkgsrc-b5ae7827f1a92a4c2af4d2030b2dc106f407eea4.tar.gz |
Reverse sense of GCC test and only perform it if we're using GCC.
-rw-r--r-- | lang/perl58/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index 77f8ffc84e0..695768fdf58 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2004/02/06 19:04:25 jlam Exp $ +# $NetBSD: Makefile,v 1.35 2004/02/10 00:55:17 jlam Exp $ # The following two variables should have empty values unless we're # building a perl snapshot or release candidate. @@ -163,16 +163,17 @@ MKPIC= no .endif .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) -. if !defined(_GCC_IS_AT_LEAST_3_3) -_GCC_IS_AT_LEAST_3_3!= \ - if ${PKG_ADMIN} pmatch 'gcc>=3.3' ${CC_VERSION}; then \ +. if !empty(CC_VERSION:Mgcc*) +. if !defined(_GCC_IS_TOO_OLD) +_GCC_IS_TOO_OLD!= \ + if ${PKG_ADMIN} pmatch 'gcc<3.3' ${CC_VERSION}; then \ ${ECHO} "YES"; \ else \ ${ECHO} "NO"; \ fi -MAKEFLAGS+= _GCC_IS_AT_LEAST_3_3=${_GCC_IS_AT_LEAST_3_3} -. endif -. if !empty(_GCC_IS_AT_LEAST_3_3:M[nN][oO]) +MAKEFLAGS+= _GCC_IS_TOO_OLD=${_GCC_IS_TOO_OLD} +. endif +. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS]) # # Fix brokenness when using an older toolchain (gcc<3.3) on sparc64. # Passing -g to the configure process triggers -DDEBUGGING, which plays @@ -180,6 +181,7 @@ MAKEFLAGS+= _GCC_IS_AT_LEAST_3_3=${_GCC_IS_AT_LEAST_3_3} # -g to CFLAGS to at least have a really debuggable build. # CFLAGS+= -g -msoft-quad-float -O2 +. endif . endif .endif |