libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

link_all_deplibs=yes


From: Albert Chin
Subject: link_all_deplibs=yes
Date: Fri, 10 Dec 2004 15:55:14 -0600
User-agent: Mutt/1.5.6i

>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 (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]