Grandfather dependencies completely out of control

Jeremy Messenger mezz7 at cox.net
Thu May 6 03:03:13 UTC 2010


On Wed, 05 May 2010 17:03:41 -0500, b. f. <bf1783 at googlemail.com> wrote:

> Alexander Leidinger wrote:
> ,,,
>> Because of the libtool/pkg-config problem all childs of a
>> "problematic" lib will contain a reference to the lib, even if the
>> particular lib is just a dependency of a lib which the current port
>> uses. To make this description more explicit: if your port uses
>> libGRAPH (I made upt this name) and libGRAPH is linked to libjpeg and
>> libpng via libtool (at least 1.x), but your port is not directly using
>> symbols from libjpeg or libpng, the binaries of your port will have
>> libpng *and* libjpeg hardcoded.
>
> Use of
>
> LDFLAGS+= -Wl,--as-needed
>
> can help with this problem.  But of course a lot of ports don't now

See ltasneededhack in ports/Mk/bsd.gnome.mk (ie:  
USE_GNOME=ltasneededhack), we are using on evolution and a few others to  
help speed up.


The libtool2 was supposed to get rid of *.la files by default, but the  
developers have changed mind. Too bad for all of us.

Cheers,
Mezz

> respect LDFLAGS (many gnome ports offend in this regard).  Because a
> lot of people want to use alternative compilers/toolchains for ports,
> and because of new gcc features like -flto, -fwhopr, and
> -fstack-protector* (the last has been enabled by default in the base
> system for some time now, but still cannot be properly used for a
> large number of ports which don't respect LDFLAGS), there needs to be
> a cleanup to ensure that as many ports as possible respect the
> toolchain (ADDR2LINE, AR, AS, CPPFILT, LD, NM, OBJCOPY, OBJDUMP,
> RANLIB, READELF, SIZE, STRINGS, STRIP) and compiler-related variables
> ( CC, CPP, CXX, CFLAGS, CPPFLAGS, CXXFLAGS, and LDFLAGS).
>
> b.


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org


More information about the freebsd-gnome mailing list