From 16402fcd7c20b10adf0ee66fbf091fb681cd8aad Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 3 Feb 2004 21:56:40 +0000 Subject: Don't add to LDFLAGS if the directories are "not_found". --- mk/compiler/gcc.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index c1416b8472a..46324826edb 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.20 2004/02/03 21:51:45 jlam Exp $ +# $NetBSD: gcc.mk,v 1.21 2004/02/03 21:56:40 jlam Exp $ .if !defined(COMPILER_GCC_MK) COMPILER_GCC_MK= defined @@ -220,7 +220,9 @@ _GCC_ARCHDIR!= \ fi _GCC_LDFLAGS= # empty . for _dir_ in ${_GCC_ARCHDIR} ${_GCC_PREFIX}lib +. if empty(_dir_:M*not_found*) _GCC_LDFLAGS+= -L${_dir_} ${_COMPILER_LD_FLAG}${RPATH_FLAG}${_dir_} +. endif . endfor LDFLAGS+= ${_GCC_LDFLAGS} -- cgit v1.2.3