Index: libtool/libltdl/config/ltmain.m4sh =================================================================== --- libtool.orig/libltdl/config/ltmain.m4sh +++ libtool/libltdl/config/ltmain.m4sh @@ -6631,6 +6631,13 @@ EOF finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi + if test "$preload" = no && test -n "$dlfiles$dlprefiles"; then + # Add the symbol object into the linking commands. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "address@hidden@address@hidden@ @address@hidden"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "address@hidden@address@hidden@ @address@hidden"` + preload=yes + fi + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step