pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc3 Avoid error messages on systems where the "g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be1e8c5553a3
branches:  trunk
changeset: 461200:be1e8c5553a3
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Sep 12 15:28:54 2003 +0000

description:
Avoid error messages on systems where the "gcc3" package is not yet
installed.

diffstat:

 lang/gcc3/buildlink2.mk |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 3aae9cdbeeb8 -r be1e8c5553a3 lang/gcc3/buildlink2.mk
--- a/lang/gcc3/buildlink2.mk   Fri Sep 12 15:12:56 2003 +0000
+++ b/lang/gcc3/buildlink2.mk   Fri Sep 12 15:28:54 2003 +0000
@@ -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_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}||}
 



Home | Main Index | Thread Index | Old Index