pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Check that MABIFLAG is defined before chec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/652c12903896
branches: trunk
changeset: 475499:652c12903896
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon May 17 05:33:08 2004 +0000
description:
Check that MABIFLAG is defined before checking that it's non-empty. This
avoids breakage if MABIFLAG isn't defined.
diffstat:
mk/compiler/gcc.mk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 8541000f6d5b -r 652c12903896 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Mon May 17 04:44:44 2004 +0000
+++ b/mk/compiler/gcc.mk Mon May 17 05:33:08 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.66 2004/05/17 03:12:46 jschauma Exp $
+# $NetBSD: gcc.mk,v 1.67 2004/05/17 05:33:08 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -271,12 +271,12 @@
_GCC_PREFIX= ${LOCALBASE}/${_GCC_SUBPREFIX}
_GCC_ARCHDIR!= \
if [ -x ${_GCC_PREFIX}bin/gcc ]; then \
- ${DIRNAME} `${_GCC_PREFIX}bin/gcc ${MABIFLAG} --print-libgcc-file-name`; \
+ ${DIRNAME} `${_GCC_PREFIX}bin/gcc ${MABIFLAG} -print-libgcc-file-name 2>/dev/null`; \
else \
${ECHO} "_GCC_ARCHDIR_not_found"; \
fi
. if empty(_GCC_ARCHDIR:M*not_found*)
-. if !empty(MABIFLAG)
+. if defined(MABIFLAG) && !empty(MABIFLAG)
_GCC_PREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H}/
_GCC_SUBPREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H:T}/
. else
Home |
Main Index |
Thread Index |
Old Index