summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2003-09-02 03:19:22 +0000
committerjlam <jlam>2003-09-02 03:19:22 +0000
commita3f5cf297cb696f484878d65097a25edbb9de543 (patch)
tree256215212190c14d8d25535e55189857c56b63b9
parent54c88947c115cc74b1f8c2cf6179b3e834ccf557 (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