Permalink
Browse files

Remove -R* options from the dependency_libs lines of *.la and *.lai f…

…iles.
  • Loading branch information...
1 parent 54c8894 commit a3f5cf297cb696f484878d65097a25edbb9de543 jlam committed Sep 2, 2003
Showing with 10 additions and 1 deletion.
  1. +10 −1 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

0 comments on commit a3f5cf2

Please sign in to comment.