summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2003-08-31 07:05:50 +0000
committerjlam <jlam>2003-08-31 07:05:50 +0000
commita620866d379a3370a7ba455a03bb89ffcb1da3f5 (patch)
treef781730316af81f99b596f45991a6212d5297ff5
parent825c5574f1fd21279089999c3e69ce6f77436c1e (diff)
downloadpkgsrc-a620866d379a3370a7ba455a03bb89ffcb1da3f5.tar.gz
Also strip out -L@WRKSRC@ since the libraries may be in the top-level
source directory.
-rw-r--r--mk/buildlink3/libtool-fix-la4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/buildlink3/libtool-fix-la b/mk/buildlink3/libtool-fix-la
index d09590e19b2..204429af3f3 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.7 2003/08/30 07:45:03 jlam Exp $
+# $NetBSD: libtool-fix-la,v 1.1.2.8 2003/08/31 07:05:50 jlam Exp $
#
# For *.la files, in the "relink_command" line, we make the following
# replacements:
@@ -186,7 +186,7 @@ if $test -f $lafile; then
case "$i" in
-L${BUILDLINK_DIR}/*)
;;
- -L@WRKSRC@/*)
+ -L@WRKSRC@|-L@WRKSRC@/*)
;;
-L@DEPOTBASE@/*)
i=`$echo "X$i" | $Xsed -e "s,-L@DEPOTBASE@/[^/]*/,-L@LOCALBASE@/,"`