summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-12-28 18:58:09 +0000
committerjlam <jlam@pkgsrc.org>2002-12-28 18:58:09 +0000
commita36d3406783925178b836601a61c9adbaf234d9b (patch)
tree8cbc9aa495e0a18fd4b5520973d372ba244ece4d /mk
parentebe087d42d6f8b122f4ad6165a06f0eaa127f016 (diff)
downloadpkgsrc-a36d3406783925178b836601a61c9adbaf234d9b.tar.gz
As a refinement on the previous commit, we shouldn't even add .../.libs
directories to the search list for libtool archives. Also make it clear that the warning comes from the libtool wrapper.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink2/libtool-logic23
1 files changed, 15 insertions, 8 deletions
diff --git a/mk/buildlink2/libtool-logic b/mk/buildlink2/libtool-logic
index 27857393b5f..1891c4ae6b0 100644
--- a/mk/buildlink2/libtool-logic
+++ b/mk/buildlink2/libtool-logic
@@ -1,15 +1,22 @@
-# $NetBSD: libtool-logic,v 1.2 2002/12/28 18:49:57 jlam Exp $
+# $NetBSD: libtool-logic,v 1.3 2002/12/28 18:58:09 jlam Exp $
case $arg in
-L.|-L./*|-L..*|-L${WRKSRC}*)
case $fixlibpath in
yes)
- lpath=`$echo "X$arg" | $Xsed -e "s/^-L//"`
- $echo "*** [buildlink2] Warning: deprecated -L$lpath detected"
- case "$rellpath" in
- *"$lpath "*) ;;
- *"$lpath"*) ;;
- *) rellpath="$rellpath $lpath" ;;
+ case $arg in
+ */.libs)
+ # ignore -L.../.libs
+ ;;
+ *)
+ $echo "*** [buildlink2] Warning: libtool detected $arg"
+ lpath=`$echo "X$arg" | $Xsed -e "s/^-L//"`
+ case "$rellpath" in
+ *"$lpath "*) ;;
+ *"$lpath"*) ;;
+ *) rellpath="$rellpath $lpath" ;;
+ esac
+ ;;
esac
;;
esac
@@ -21,7 +28,7 @@ case $arg in
for dir in $rellpath; do
la="$dir/lib$lib.la"
if $test -f "$la"; then
- $echo "*** [buildlink2] Warning: replaced $arg with $la"
+ $echo "*** [buildlink2] Warning: libtool replaced $arg with $la"
arg="$la"
cachesettings='skipcache=yes'
break