diff options
author | joerg <joerg@pkgsrc.org> | 2008-11-27 17:56:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-11-27 17:56:52 +0000 |
commit | b5fd177ee1c28e9ca0894139c65b07113dc3e642 (patch) | |
tree | ff9d9de9b43e5b094445fd0c5c1a04e2de4dc8c0 | |
parent | 5c8f6fbe4c4e54b6521c9e1a65842445922b9a9e (diff) | |
download | pkgsrc-b5fd177ee1c28e9ca0894139c65b07113dc3e642.tar.gz |
Adjust xlc_r check to actually look for the right binary.
Prefer xlc_r over cc_r as authoritive name. Export CC_R.
From Jens Rehstack.
-rw-r--r-- | mk/compiler/xlc.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk index 920726c9117..9cbaff10eba 100644 --- a/mk/compiler/xlc.mk +++ b/mk/compiler/xlc.mk @@ -1,4 +1,4 @@ -# $NetBSD: xlc.mk,v 1.18 2008/11/14 14:04:12 joerg Exp $ +# $NetBSD: xlc.mk,v 1.19 2008/11/27 17:56:52 joerg Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -82,12 +82,13 @@ _ALIASES.CXX= c++ xlc++ CXXPATH= ${XLCBASE}/bin/xlc++ PKG_CXX:= ${_XLC_CXX} .endif -.if exists(${XLCBASE}/bin/xlc) +.if exists(${XLCBASE}/bin/xlc_r) _XLC_VARS+= CC_R -_XLC_CC_R= ${_XLC_DIR}/bin/cc_r +_XLC_CC_R= ${_XLC_DIR}/bin/xlc_r _ALIASES.CC_R= cc_r xlc_r CC_RPATH= ${XLCBASE}/bin/xlc_r PKG_CC_R:= ${_XLC_CC_R} +CC_R?= cc_r .endif _COMPILER_STRIP_VARS+= ${_XLC_VARS} _COMPILER_RPATH_FLAG= -Wl,-R |