summaryrefslogtreecommitdiff
path: root/mk/buildlink2
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-04-15 01:33:58 +0000
committergrant <grant@pkgsrc.org>2003-04-15 01:33:58 +0000
commitc4097073a3dcf84da16ae93d9a20c00c7b161423 (patch)
treeacdd834018f8888afe3ea3973dde6501ba616f11 /mk/buildlink2
parent5f8d847661d9c95762bcd9d8f1c4910a3efd8195 (diff)
downloadpkgsrc-c4097073a3dcf84da16ae93d9a20c00c7b161423.tar.gz
only create the wrappers for /opt/SUNWspro/bin/{CC,CXX} if we're not
using gcc. fixes problem on Solaris where building pkgs would use the wrong CC (eg. CC=gcc) due to the wrappers being in the $PATH first.
Diffstat (limited to 'mk/buildlink2')
-rw-r--r--mk/buildlink2/bsd.buildlink2.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk
index f0bc8c089df..1ee31c06855 100644
--- a/mk/buildlink2/bsd.buildlink2.mk
+++ b/mk/buildlink2/bsd.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.80 2003/04/11 18:13:09 jmc Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.81 2003/04/15 01:33:58 grant Exp $
#
# An example package buildlink2.mk file:
#
@@ -775,10 +775,12 @@ MAKE_ENV+= ${BUILDLINK_ENV}
# OS-specific overrides for buildlink2 wrappers
#
+.if ${CC:M*gcc*} != ""
_BLNK_WRAPPEES.SunOS?= CC CXX
SUNWSPROBASE?= /opt/SUNWspro
CC.SunOS?= ${SUNWSPROBASE}/bin/cc
CXX.SunOS?= ${SUNWSPROBASE}/bin/CC
+.endif
buildlink-${_BLNK_OPSYS}-wrappers: buildlink-wrappers
.for _wrappee_ in ${_BLNK_WRAPPEES.${_BLNK_OPSYS}}