pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Don't add to LDFLAGS if the directories ar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eaad0d8aa5de
branches:  trunk
changeset: 467607:eaad0d8aa5de
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Feb 03 21:56:40 2004 +0000

description:
Don't add to LDFLAGS if the directories are "not_found".

diffstat:

 mk/compiler/gcc.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 660bdbf0d2dd -r eaad0d8aa5de mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Tue Feb 03 21:54:38 2004 +0000
+++ b/mk/compiler/gcc.mk        Tue Feb 03 21:56:40 2004 +0000
@@ -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 @@
        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}
 



Home | Main Index | Thread Index | Old Index