From 013d34713127323946593af0c33f2223727b734b Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 2 Sep 2003 03:19:22 +0000 Subject: Remove -R* options from the dependency_libs lines of *.la and *.lai files. --- mk/buildlink3/libtool-fix-la | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 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 flags. Also modify directories in # ${DEPOTBASE} to point to somewhere in the -- cgit v1.2.3