pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 On AIX, perl doesn't like building with gcc.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f29c8869c96
branches:  trunk
changeset: 464041:1f29c8869c96
user:      erh <erh%pkgsrc.org@localhost>
date:      Wed Dec 03 17:29:12 2003 +0000

description:
On AIX, perl doesn't like building with gcc.
Force it to use /usr/bin/cc instead.

diffstat:

 lang/perl5/Makefile  |  8 +++++++-
 lang/perl5/module.mk |  9 ++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r c9a6a51af486 -r 1f29c8869c96 lang/perl5/Makefile
--- a/lang/perl5/Makefile       Wed Dec 03 17:28:34 2003 +0000
+++ b/lang/perl5/Makefile       Wed Dec 03 17:29:12 2003 +0000
@@ -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 @@
        ${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 -r c9a6a51af486 -r 1f29c8869c96 lang/perl5/module.mk
--- a/lang/perl5/module.mk      Wed Dec 03 17:28:34 2003 +0000
+++ b/lang/perl5/module.mk      Wed Dec 03 17:29:12 2003 +0000
@@ -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 @@
 #
 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}                                     \



Home | Main Index | Thread Index | Old Index