diff options
author | erh <erh> | 2003-12-03 17:29:12 +0000 |
---|---|---|
committer | erh <erh> | 2003-12-03 17:29:12 +0000 |
commit | a791c55933d17bbb74b5142b2a582412f71ce2bc (patch) | |
tree | 74c61a198d6ab6cf335d24ace15b8be700b7e0d0 /lang | |
parent | 35b2b7467dcc0daef73a72820bcad56790091a3e (diff) | |
download | pkgsrc-a791c55933d17bbb74b5142b2a582412f71ce2bc.tar.gz |
On AIX, perl doesn't like building with gcc.
Force it to use /usr/bin/cc instead.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/Makefile | 8 | ||||
-rw-r--r-- | lang/perl5/module.mk | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index dd9ec9fb7e0..d8dd596261d 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.71 2003/09/13 17:05:08 jschauma Exp $ +# $NetBSD: Makefile,v 1.72 2003/12/03 17:29:12 erh Exp $ .include "../../lang/perl5/Makefile.common" @@ -188,4 +188,10 @@ post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/mk ${INSTALL_DATA} ${WRKDIR}/bsd.perl.mk ${PREFIX}/share/mk/bsd.perl.mk +.if ${OPSYS} == "AIX" +# Perl doesn't like building with gcc on AIX +CC=/usr/bin/cc +.undef USE_GCC3 +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk index e577a927560..af515527d91 100644 --- a/lang/perl5/module.mk +++ b/lang/perl5/module.mk @@ -1,4 +1,4 @@ -# $NetBSD: module.mk,v 1.26 2003/11/27 04:11:40 jlam Exp $ +# $NetBSD: module.mk,v 1.27 2003/12/03 17:29:12 erh Exp $ # # This Makefile fragment is intended to be included by packages that build # and install perl5 modules. @@ -49,6 +49,13 @@ PERL5_CONFIGURE_DIRS?= ${CONFIGURE_DIRS} # MAKE_PARAMS+= INSTALLDIRS=site +.if ${OPSYS} == "AIX" +# Perl doesn't like building with gcc on AIX +CC=/usr/bin/cc +MAKE_PARAMS+= CC="${CC}" +.undef USE_GCC3 +.endif + .PHONY: perl5-configure perl5-configure: ${_PKG_SILENT}${_PKG_DEBUG} \ |