diff options
author | joerg <joerg@pkgsrc.org> | 2008-11-14 14:04:12 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-11-14 14:04:12 +0000 |
commit | 07e7458998131778627c8dc2ca91688e29c103bc (patch) | |
tree | d3a0d3e9296a688b648acf8ab7a63cba372eeac4 /mk/compiler | |
parent | 85423b6b315973086525157bee33bcd26272c437 (diff) | |
download | pkgsrc-07e7458998131778627c8dc2ca91688e29c103bc.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.mk | 9 |
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 |