summaryrefslogtreecommitdiff
path: root/mk/buildlink3/libtool-fix-la
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/libtool-fix-la')
-rw-r--r--mk/buildlink3/libtool-fix-la6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/buildlink3/libtool-fix-la b/mk/buildlink3/libtool-fix-la
index 053d42be88f..9e3751fbbc7 100644
--- a/mk/buildlink3/libtool-fix-la
+++ b/mk/buildlink3/libtool-fix-la
@@ -1,4 +1,4 @@
-# $NetBSD: libtool-fix-la,v 1.1.2.3 2003/08/16 11:05:36 jlam Exp $
+# $NetBSD: libtool-fix-la,v 1.1.2.4 2003/08/16 11:13:25 jlam Exp $
#
# For *.la files, in the "relink_command" line, we make the following
# replacements:
@@ -189,7 +189,7 @@ if $test -f $lafile; then
-L@WRKSRC@/*)
;;
-L@DEPOTBASE@/*)
- i=`$echo "X$i" | $Xsed -e "s,-L@DEPOTBASE@,-L@LOCALBASE@,"`
+ i=`$echo "X$i" | $Xsed -e "s,-L@DEPOTBASE@/[^/]*/,-L@LOCALBASE@/,"`
case "$L" in
*"$i "*) ;;
*"$i") ;;
@@ -223,7 +223,7 @@ if $test -f $lafile; then
#
*.la)
dirbase=`@DIRNAME@ $i`
- dir=`$echo "X$dirbase" | $Xsed -e "s,^@DEPOTBASE@/,@LOCALBASE@/,"`
+ dir=`$echo "X$dirbase" | $Xsed -e "s,^@DEPOTBASE@/[^/]*/,@LOCALBASE@/,"`
case "$L" in
*"-L$dir "*) ;;
*"-L$dir") ;;