Date: Wed, 5 Nov 2014 12:38:39 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: arch@FreeBSD.org Subject: Overlinking in base Message-ID: <20141105113839.GG10388@ivaldir.etoilebsd.net>
next in thread | raw e-mail | index | archive | help
--OFj+1YLvsEfSXdCH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, We do overlink a lot in the base system. I wrote a script to check overlinking on the final binaries and running it on /usr/bin files I got the following results: https://wiki.freebsd.org/Overlinking Most of the overlink are due to LDADD having all the recursive libraries which for dynamic linking we do not need. We might need them for static linking, but I think we should fix those. I think anyway a binary Makefile should only declare its direct dependencies and not the dependencies of its dependencies. I was already proposing in the past to import pkgconf in base to solve this as the library will declare its dependencies in case of dynamic linking and/or in case of static linking (which can be different) This can also be done in pure make(1) regards, Bapt --OFj+1YLvsEfSXdCH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlRaDD8ACgkQ8kTtMUmk6EysJQCfRQIgRa5leygkPsUqDWiR6uLt W/0AnjXevvLQikLsZsxebRIpmxdtycki =lZWp -----END PGP SIGNATURE----- --OFj+1YLvsEfSXdCH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141105113839.GG10388>