diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-03 21:56:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-03 21:56:40 +0000 |
commit | 49df0ac7eda69ee4733a5f527d78ac73043ec310 (patch) | |
tree | a8a913892626e49579d8bf15d9f22ced34a8eda5 /mk | |
parent | 78a8ba3cddba98c3f1e917f329d6c552aa6a8f08 (diff) | |
download | pkgsrc-49df0ac7eda69ee4733a5f527d78ac73043ec310.tar.gz |
Don't add to LDFLAGS if the directories are "not_found".
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/gcc.mk | 4 |
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} |