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'
;;
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"
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 "\