* ltmain.in (dlpredeps): append dependencies from dlopened modules

(but not dlpreopened ones) after all explicitly linked libraries
This commit is contained in:
Alexandre Oliva 1999-01-17 05:44:56 +00:00 committed by Alexandre Oliva
parent 8d903ac44d
commit 77d2b6319c
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,8 @@
1999-01-17 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltmain.in (dlpredeps): append dependencies from dlopened modules
(but not dlpreopened ones) after all explicitly linked libraries
* ltconfig.in (need_lib_prefix, need_version,
deplibs_check_method): default to unknown, so that we're
remembered that this needs porting; unknown is interpreted as yes,

View File

@ -616,6 +616,7 @@ compiler."
avoid_versioning=no
dlfiles=
dlprefiles=
dlpredeps=
export_dynamic=no
export_symbols=
generated=
@ -977,8 +978,7 @@ compiler."
else
# We should not create a dependency on this library, but we
# may need any libraries it requires.
compile_command="$compile_command$dependency_libs"
finalize_command="$finalize_command$dependency_libs"
dlpredeps="$dlpredeps$dependency_libs"
prev=
continue
fi
@ -2040,6 +2040,10 @@ lt_preloaded_symbols[] =
compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
# Append dependencies from dlopened modules
compile_command="$compile_command$dlpredeps"
finalize_command="$finalize_command$dlpredeps"
# We have no uninstalled library dependencies, so finalize right now.
$show "$compile_command"
$run eval "$compile_command"
@ -2050,6 +2054,10 @@ lt_preloaded_symbols[] =
compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'T%g'`
# Append dependencies from dlopened modules
compile_command="$compile_command$dlpredeps"
finalize_command="$finalize_command$dlpredeps"
# Create the binary in the object directory, then wrap it.
if test ! -d $output_objdir; then
$show "$mkdir $output_objdir"