blob: 6813218eba3db9af8f405228d6a26e4fa70244a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: libtool-logic,v 1.5 2003/01/07 07:34:39 jlam Exp $
case $arg in
-L.|-L./*|-L..*|-L${WRKSRC}*)
case $fixlibpath in
yes)
case $arg in
*/.libs)
# ignore -L.../.libs
;;
*)
$echo "*** [buildlink2] Warning: libtool detected $arg" >> $wrapperlog
$echo "*** [buildlink2] Warning: libtool detected $arg" 1>&2
lpath=`$echo "X$arg" | $Xsed -e "s/^-L//"`
case "$rellpath" in
*"$lpath "*) ;;
*"$lpath"*) ;;
*) rellpath="$rellpath $lpath" ;;
esac
;;
esac
;;
esac
;;
-l*)
case $fixlibpath in
yes)
lib=`$echo "X$arg" | $Xsed -e "s/^-l//"`
for dir in $rellpath; do
la="$dir/lib$lib.la"
if $test -f "$la"; then
$echo "*** [buildlink2] Warning: libtool replaced $arg with $la" >> $wrapperlog
$echo "*** [buildlink2] Warning: libtool replaced $arg with $la" 1>&2
arg="$la"
cachesettings='skipcache=yes'
break
fi
done
;;
esac
addtoprivatecache=yes
;;
esac
|