pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Provide _COMPILER_RPATH_FLAG and _LINKER_R...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8533a074bf12
branches: trunk
changeset: 532309:8533a074bf12
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Aug 15 21:26:28 2007 +0000
description:
Provide _COMPILER_RPATH_FLAG and _LINKER_RPATH_FLAG. This should work
at the very least with AIX 5.3 directly and for older, wrapper should
take care.
Provide some more sane defaults for XLC and bail out explicitly if
XLCBASE can't be determined.
diffstat:
mk/compiler/xlc.mk | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 0466cdcbbe1b -r 8533a074bf12 mk/compiler/xlc.mk
--- a/mk/compiler/xlc.mk Wed Aug 15 21:24:43 2007 +0000
+++ b/mk/compiler/xlc.mk Wed Aug 15 21:26:28 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: xlc.mk,v 1.14 2006/12/15 12:46:24 martti Exp $
+# $NetBSD: xlc.mk,v 1.15 2007/08/15 21:26:28 joerg Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -47,7 +47,17 @@
.include "../../mk/bsd.prefs.mk"
-XLCBASE?= /opt/ibmcmp/vacpp/6.0
+.if !defined(XLCBASE)
+. if exists(/usr/vacpp/README)
+XLCBASE= /usr/vacpp
+. elif exists(/usr/vac/README)
+XLCBASE= /usr/vac
+. elif exists(/opt/ibmcmp/vacpp/6.0/README)
+XLCBASE= /opt/ibmcmp/vacpp/6.0
+. else
+PKG_FAIL_REASON+= "Cannot determine XLCBASE."
+. endif
+.endif
# LANGUAGES.<compiler> is the list of supported languages by the
# compiler.
@@ -73,6 +83,8 @@
PKG_CXX:= ${_XLC_CXX}
.endif
_COMPILER_STRIP_VARS+= ${_XLC_VARS}
+_COMPILER_RPATH_FLAG= -Wl,-R
+_LINKER_RPATH_FLAG= -R
.if exists(${CCPATH})
CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE}
Home |
Main Index |
Thread Index |
Old Index