diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2005-05-09 15:41:52 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2005-05-09 15:41:52 +0000 |
commit | fd0c1ea533d18cb675e3e39e08bd9e6867243ba2 (patch) | |
tree | 905b9ffe4d67b84ec453d6e9fd651cfcb8e5d755 /lang/perl58 | |
parent | 72bed45769757ded2b01fc1e27e55f6a124610df (diff) | |
download | pkgsrc-fd0c1ea533d18cb675e3e39e08bd9e6867243ba2.tar.gz |
Modify previous: only enable -fno-cse-skip-blocks when compiler is
gcc-3.x.
Diffstat (limited to 'lang/perl58')
-rw-r--r-- | lang/perl58/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index 67132bde904..48b2129143f 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.79 2005/05/09 15:35:44 xtraeme Exp $ +# $NetBSD: Makefile,v 1.80 2005/05/09 15:41:52 xtraeme Exp $ # The following two variables should have empty values unless we're # building a perl snapshot or release candidate. @@ -43,6 +43,8 @@ CONFLICTS= perl-5.00* perl-base-[0-9]* \ PKG_INSTALLATION_TYPES= overwrite pkgviews +.include "../../mk/compiler.mk" + HAS_CONFIGURE= yes CONFIGURE_SCRIPT= ./Configure CONFIGURE_ARGS+= -sde @@ -51,7 +53,9 @@ CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin" CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}" CONFIGURE_ARGS+= -Dcc="${CC}" .if !empty(MACHINE_ARCH:Marm) +. if !empty(CC_VERSION:Mgcc-3*) CONFIGURE_ARGS+= -Doptimize="${CFLAGS} -fno-cse-skip-blocks" +. endif .else CONFIGURE_ARGS+= -Doptimize="${CFLAGS}" .endif |