summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortron <tron>2003-09-12 15:28:54 +0000
committertron <tron>2003-09-12 15:28:54 +0000
commit3ac91f75f70311656dc666314f6258f8fa3ae3dd (patch)
tree4b97db79d2e2c3d4f68d096f73298375ecc2c63a /lang
parent5f080fcdfbe81b6fe46badd4202186b5c75a5272 (diff)
downloadpkgsrc-3ac91f75f70311656dc666314f6258f8fa3ae3dd.tar.gz
Avoid error messages on systems where the "gcc3" package is not yet
installed.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc3/buildlink2.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/gcc3/buildlink2.mk b/lang/gcc3/buildlink2.mk
index a2283afff19..b336ec76abe 100644
--- a/lang/gcc3/buildlink2.mk
+++ b/lang/gcc3/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.7 2003/09/12 13:03:41 grant Exp $
+# $NetBSD: buildlink2.mk,v 1.8 2003/09/12 15:28:54 tron Exp $
# Do not directly include this file in package Makefiles. It is
# automatically included when required based on USE_GCC3.
@@ -21,8 +21,12 @@ BUILDLINK_DEPMETHOD.gcc?= build
BUILDLINK_PREFIX.gcc= ${LOCALBASE}
_GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX}
-_GCC_LIBGCCDIR!= \
- dirname `${_GCC_PREFIX}bin/gcc --print-libgcc-file-name`
+_GCC_LIBGCCDIR!= \
+ if [ -x ${_GCC_PREFIX}bin/gcc ]; then \
+ dirname `${_GCC_PREFIX}bin/gcc --print-libgcc-file-name`; \
+ else \
+ ${ECHO} not-defined; \
+ fi
_GCC_ARCHSUBDIR= \
${_GCC_LIBGCCDIR:S|^${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX}||}