>From config/ltmain.m4sh (applies to 1.5 as well):
...
if test "$linkmode" = prog && test "$pass" != link; then
newlib_search_path="$newlib_search_path $ladir"
deplibs="$lib $deplibs"
linkalldeplibs=no
if test "$link_all_deplibs" != no || test -z "$library_names" ||
test "$build_libtool_libs" = no; then
linkalldeplibs=yes
fi
tmp_libs=
for deplib in $dependency_libs; do
case $deplib in
-L*) newlib_search_path="$newlib_search_path "`$ECHO "X$deplib" |
$Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
esac
# Need to link against all dependency_libs?
if test "$linkalldeplibs" = yes; then
deplibs="$deplib $deplibs"
else
...
Why enforce this only when $linkmode=prog? Why shouldn't the deplibs
additions in the above apply when creating libraries?
I'm trying to build kde-3.3.1 on AIX 5.2 and because deplibs isn't
added to link when $linkmode=prog, library linking is failing with
unresolved symbols (because the dependency libs from dependent .la
files aren't being included in the command-line).
--
albert chin ([EMAIL PROTECTED])
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/libtool