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

Re: Looking for a autotools/libtool expert: Unnecessarily linked libraries

I demand that Frank Küster may or may not have written...

> The Problem:

> - Binaries in the tetex-bin package are unnecessarily linked against
>   libraries they do not use directly, but only indirectly through other
>   libraries [1].

That sounds like -Wl,--as-needed needs to be added to LDFLAGS. The following
m4 fragment (which is used in gxine) may help:

    LDFLAGS="$lt_prog_compiler_wl--as-needed $LDFLAGS"
    AC_MSG_CHECKING([whether the linker supports --as-needed])
    AC_TRY_LINK([], [], ac_cv_ld_asneeded=yes, ac_cv_ld_asneeded=no)
    test x"$ac_cv_ld_asneeded" = xyes || LDFLAGS="$ac_SAVE_LDFLAGS"

(I've not looked at the package, though.)

| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Output *more* particulate pollutants.      BUFFER AGAINST GLOBAL WARMING.

Can I stop typing in taglines now please?

Reply to: