summaryrefslogtreecommitdiff
path: root/lang/perl58
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-05-09 15:41:52 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-05-09 15:41:52 +0000
commitfd0c1ea533d18cb675e3e39e08bd9e6867243ba2 (patch)
tree905b9ffe4d67b84ec453d6e9fd651cfcb8e5d755 /lang/perl58
parent72bed45769757ded2b01fc1e27e55f6a124610df (diff)
downloadpkgsrc-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/Makefile6
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