summaryrefslogtreecommitdiff
path: root/net/p5-Socket6/Makefile
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-02-25 20:39:20 +0000
committersno <sno@pkgsrc.org>2009-02-25 20:39:20 +0000
commit838940cc47288d4575b17e1bffa2a3918ebb545e (patch)
treeb1d154a04023d7d95c39611eb4a816d43fd10490 /net/p5-Socket6/Makefile
parent336c284e13d00ed46a47e2b1e7d5a24043ad4c25 (diff)
downloadpkgsrc-838940cc47288d4575b17e1bffa2a3918ebb545e.tar.gz
- Fix build problems on any platform, where perl isn't compiled using the
compiler provided in ${CC} according to RT #14372 - tell the "right" compiler to use on AIX when PKGSRC_COMPILER=xlc
Diffstat (limited to 'net/p5-Socket6/Makefile')
-rw-r--r--net/p5-Socket6/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/p5-Socket6/Makefile b/net/p5-Socket6/Makefile
index 8db85474f1f..7464024a272 100644
--- a/net/p5-Socket6/Makefile
+++ b/net/p5-Socket6/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/11/05 15:25:34 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2009/02/25 20:39:20 sno Exp $
#
DISTNAME= Socket6-0.23
@@ -22,5 +22,12 @@ BUILD_DEFS+= IPV6_READY
USE_LANGUAGES= c
MAKE_ENV+= CCFLAGS="${CFLAGS} ${CPPFLAGS}"
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "AIX" && ${PKGSRC_COMPILER} == "xlc"
+MAKE_ENV+= CC="cc_r"
+.endif
+cc=cc_r
+
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"