summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjoerg <joerg>2008-11-14 14:04:12 +0000
committerjoerg <joerg>2008-11-14 14:04:12 +0000
commitf63483e3a5a3ca68f0c056b8f1cd22c9eefdae1c (patch)
treed3a0d3e9296a688b648acf8ab7a63cba372eeac4 /mk/compiler
parentb5011429f8dfc79cb8134132f41d99e0ec14f4b0 (diff)
downloadpkgsrc-f63483e3a5a3ca68f0c056b8f1cd22c9eefdae1c.tar.gz
Improve AIX/XLC support based on discussions with Jens Rehsack:
- Add cc_r/xlc_r wrapper using the same rules as xlc itself. It is used for example by Perl. - Improve the RPATH emulation: - Always set -blibpath, use /usr/lib:/lib as default - If -blibpath is exlicitly given, add to the default - Additionally append any -Wl,-rpath given.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/xlc.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk
index bf352ee7818..920726c9117 100644
--- a/mk/compiler/xlc.mk
+++ b/mk/compiler/xlc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: xlc.mk,v 1.17 2008/02/07 20:59:05 rillig Exp $
+# $NetBSD: xlc.mk,v 1.18 2008/11/14 14:04:12 joerg Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -82,6 +82,13 @@ _ALIASES.CXX= c++ xlc++
CXXPATH= ${XLCBASE}/bin/xlc++
PKG_CXX:= ${_XLC_CXX}
.endif
+.if exists(${XLCBASE}/bin/xlc)
+_XLC_VARS+= CC_R
+_XLC_CC_R= ${_XLC_DIR}/bin/cc_r
+_ALIASES.CC_R= cc_r xlc_r
+CC_RPATH= ${XLCBASE}/bin/xlc_r
+PKG_CC_R:= ${_XLC_CC_R}
+.endif
_COMPILER_STRIP_VARS+= ${_XLC_VARS}
_COMPILER_RPATH_FLAG= -Wl,-R
_LINKER_RPATH_FLAG= -R