summaryrefslogtreecommitdiff
path: root/lang
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
commit7dfe8d6d861b8e5ceea8f9cf298161a3e4017914 (patch)
tree905b9ffe4d67b84ec453d6e9fd651cfcb8e5d755 /lang
parent878dbcadd0ea57caec49ffd2c6e5136212be9249 (diff)
downloadpkgsrc-7dfe8d6d861b8e5ceea8f9cf298161a3e4017914.tar.gz
Modify previous: only enable -fno-cse-skip-blocks when compiler is
gcc-3.x.
Diffstat (limited to 'lang')
-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