]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (dependency_libs, xrpath): add -R switches to
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 25 Jan 1999 08:06:09 +0000 (08:06 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 25 Jan 1999 08:06:09 +0000 (08:06 +0000)
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
ltmain.in

index 29df815369a0ee48de609db88f2ec9a115f9f553..2cf8c18d6c94c4440e130fca9a3ed770a10a9bfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-01-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * 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'
 
index 99987215393bb0dbdacf3040eb33135a60f7640a..41e44f30e4b9cadb8087a46abfd5b832234ba984 100644 (file)
--- 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 "\