summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk4
1 files changed, 3 insertions, 1 deletions
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}