summaryrefslogtreecommitdiff
path: root/lang/perl58
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-05 03:14:33 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-05 03:14:33 +0000
commit77c09ecc76d3db2d61b5df853be1f91cfaee35ef (patch)
tree5d1d26e8b0ce68a161d3b1fdd91bddd3a71eb743 /lang/perl58
parent44f433156b701219e3e095b05bd927504ad6ff5f (diff)
downloadpkgsrc-77c09ecc76d3db2d61b5df853be1f91cfaee35ef.tar.gz
Rework how proper ABI flags are set on IRIX, using patch provided by
Georg Schwarz in PR pkg/25057: - check for PKGSRC_COMPILER instead of USE_MIPSPRO: USE_MIPSPRO would imply the former, but not the other way around. That is, it's conceivable to have a system that has PKGSRC_COMPILER set (to mipspro), but not USE_MIPSPRO. - Allow passing of -Duse64bitint if ABI == 64 even if the compiler is not mipspro. (Note: we could test this on a non-IRIX 64bit platform by setting ABI to '64'. I think that should work, too, but I can't test that right now.)
Diffstat (limited to 'lang/perl58')
-rw-r--r--lang/perl58/Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile
index e10e783116b..38778dec899 100644
--- a/lang/perl58/Makefile
+++ b/lang/perl58/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2004/04/26 04:42:12 jlam Exp $
+# $NetBSD: Makefile,v 1.45 2004/05/05 03:14:33 jschauma Exp $
# The following two variables should have empty values unless we're
# building a perl snapshot or release candidate.
@@ -99,16 +99,6 @@ CONFIGURE_ARGS+= -Duseithreads
MKPIC?= yes
-.if ${OPSYS} == "IRIX" && defined(USE_MIPSPRO)
-. if ${ABI} == "32"
-PERL5_CC= ${CC:T} -n32
-. elif ${ABI} == "64"
-PERL5_CC= ${CC:T} -64
-CONFIGURE_ARGS+= -Duse64bitint
-. endif
-.else
-PERL5_CC= ${CC:T}
-.endif
CONFIGURE_ARGS+= -Dcc="${PERL5_CC}"
MAKE_ENV+= LANG=""
@@ -192,6 +182,20 @@ MKPIC= no
.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mmipspro)
+. if ${ABI} == "32"
+PERL5_CC= ${CC:T} -n32
+. elif ${ABI} == "64"
+PERL5_CC= ${CC:T} -64
+. endif
+.else
+PERL5_CC= ${CC:T}
+.endif
+
+.if ${OPSYS} == "IRIX" && ${ABI} == "64"
+CONFIGURE_ARGS+= -Duse64bitint
+.endif
+
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
. if !empty(CC_VERSION:Mgcc*)
. if !defined(_GCC_IS_TOO_OLD)