From 961df577e46b691b4f2d934725f4d71c1c30a6bb Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 25 Jan 1999 08:06:09 +0000 Subject: [PATCH] * ltmain.in (dependency_libs, xrpath): add -R switches to dependency_libs only just before creating the .la file; they should not be passed to the C compiler or linker at library-creation time, since we don't know whether it is supported --- ChangeLog | 5 +++++ ltmain.in | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29df81536..2cf8c18d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-01-25 Alexandre Oliva + * ltmain.in (dependency_libs, xrpath): add -R switches to + dependency_libs only just before creating the .la file; they + should not be passed to the C compiler or linker at + library-creation time, since we don't know whether it is supported + * ltconfig.in (freebsd2.2*, hardcode_minus_L): for FreeBSD 2.2.6, this must be `no' diff --git a/ltmain.in b/ltmain.in index 999872153..41e44f30e 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1364,14 +1364,6 @@ compiler." ;; esac - if test -n "$xrpath"; then - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - done - deplibs="$temp_xrpath $deplibs" - fi - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" @@ -2546,6 +2538,14 @@ fi\ test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" + if test -n "$xrpath"; then + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + done + dependency_libs="$temp_xrpath $dependency_libs" + fi + # Only create the output if not a dry run. if test -z "$run"; then $echo > $output "\ -- 2.47.3