diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-03 22:31:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-03 22:31:33 +0000 |
commit | 5bc134957477ed376795fa7f0e7e48ac806079c2 (patch) | |
tree | 892444a824740c36bd2f476a2eadb621aab17b89 /mk | |
parent | 49df0ac7eda69ee4733a5f527d78ac73043ec310 (diff) | |
download | pkgsrc-5bc134957477ed376795fa7f0e7e48ac806079c2.tar.gz |
Do previous in a different way to avoid make errors.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/gcc.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 46324826edb..10dcadfe76f 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.21 2004/02/03 21:56:40 jlam Exp $ +# $NetBSD: gcc.mk,v 1.22 2004/02/03 22:31:33 jlam Exp $ .if !defined(COMPILER_GCC_MK) COMPILER_GCC_MK= defined @@ -218,8 +218,9 @@ _GCC_ARCHDIR!= \ else \ ${ECHO} "not_found"; \ fi +_GCC_LIBDIRS= ${_GCC_ARCHDIR} ${_GCC_PREFIX}lib _GCC_LDFLAGS= # empty -. for _dir_ in ${_GCC_ARCHDIR} ${_GCC_PREFIX}lib +. for _dir_ in ${_GCC_LIBDIRS:N*not_found*} . if empty(_dir_:M*not_found*) _GCC_LDFLAGS+= -L${_dir_} ${_COMPILER_LD_FLAG}${RPATH_FLAG}${_dir_} . endif |