summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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