diff options
author | jlam <jlam> | 2002-12-28 18:49:57 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-12-28 18:49:57 +0000 |
commit | 183bc10ed587ca2598a9b5cc7b92650142a21cb8 (patch) | |
tree | e488328907fd788b3a596bbc4692f0c599293d01 | |
parent | 22eeda20c25af0af6566d79c1694a5f1295c115d (diff) | |
download | pkgsrc-183bc10ed587ca2598a9b5cc7b92650142a21cb8.tar.gz |
Break out of loop as soon after the first time we find a libfoo.la libtool
archive that matches "-lfoo". This prevents breakage when someone does:
-L../src -L../src/.libs -lfoo
because libtool puts a .la file into both ../src and ../src/.libs. This
fixes PR 19583 by Julio Merino <jmmv@netbsd.org>.
-rw-r--r-- | mk/buildlink2/libtool-logic | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/buildlink2/libtool-logic b/mk/buildlink2/libtool-logic index c73f64e4f93..27857393b5f 100644 --- a/mk/buildlink2/libtool-logic +++ b/mk/buildlink2/libtool-logic @@ -1,4 +1,4 @@ -# $NetBSD: libtool-logic,v 1.1 2002/12/26 17:17:32 jlam Exp $ +# $NetBSD: libtool-logic,v 1.2 2002/12/28 18:49:57 jlam Exp $ case $arg in -L.|-L./*|-L..*|-L${WRKSRC}*) @@ -24,6 +24,7 @@ case $arg in $echo "*** [buildlink2] Warning: replaced $arg with $la" arg="$la" cachesettings='skipcache=yes' + break fi done ;; |