summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-02 03:19:22 +0000
committerjlam <jlam@pkgsrc.org>2003-09-02 03:19:22 +0000
commit013d34713127323946593af0c33f2223727b734b (patch)
tree256215212190c14d8d25535e55189857c56b63b9
parent111f009d8ec3cd70765dcc030587aeb7ef5bb8f3 (diff)
downloadpkgsrc-pkgviews-mk.tar.gz
Remove -R* options from the dependency_libs lines of *.la and *.lai files.pkgviews-mk
-rw-r--r--mk/buildlink3/libtool-fix-la11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/buildlink3/libtool-fix-la b/mk/buildlink3/libtool-fix-la
index 204429af3f3..d37b2ebc492 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.8 2003/08/31 07:05:50 jlam Exp $
+# $NetBSD: libtool-fix-la,v 1.1.2.9 2003/09/02 03:19:22 jlam Exp $
#
# For *.la files, in the "relink_command" line, we make the following
# replacements:
@@ -26,6 +26,10 @@ if $test -f $lafile; then
deps=
for i in ${dependency_libs}; do
case "$i" in
+ -R*)
+ # Skip all -R* options... rpath info shouldn't go into the
+ # dependency_libs line.
+ ;;
# Catch -L<dir> and remove redundant ones.
-L*)
case "$deps" in
@@ -175,6 +179,11 @@ if $test -f $lafile; then
#
$prev)
;;
+ # Skip all -R* options... rpath info shouldn't go
+ # into the dependency_libs line.
+ #
+ -R*)
+ ;;
# Skip directories that should never appear in
# the -L<dir> flags. Also modify directories in
# ${DEPOTBASE} to point to somewhere in the