Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 11:15:48 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Bernhard Fr?hlich <decke@bluelife.at>
Cc:        Baptiste Daroussin <bapt@freebsd.org>, hackers@freebsd.org
Subject:   Re: Fix overlinking in base aka import pkgconf
Message-ID:  <20121215091548.GT71906@kib.kiev.ua>
In-Reply-To: <1355558294.7933.2.camel@Nokia-N900-42-11>
References:  <20121214235418.GF18884@ithaqua.etoilebsd.net> <20121215012233.GP71906@kib.kiev.ua> <1355558294.7933.2.camel@Nokia-N900-42-11>

next in thread | previous in thread | raw e-mail | index | archive | help

--h/77pM/XNBmEJr8g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 15, 2012 at 08:58:14AM +0100, Bernhard Fr?hlich wrote:
> On Sa., 15. Dez. 2012 02:22:34 CET, Konstantin Belousov <kostikbel@gmail.=
com> wrote:
>=20
> > On Sat, Dec 15, 2012 at 12:54:19AM +0100, Baptiste Daroussin wrote:
> > > Hi,
> > >=20
> > > Some of our binary are overlinked, the way we handle the linking
> > > doesn't help for that.
> > What do you mean there ? Do you mean that some libraries specified for
> > the linking stage of the final binary are not needed for the execution ?
> >=20
> > >=20
> > > On proposition could be to use pkgconf
> > > https://github.com/pkgconf/pkgconf which is BSD license pkg-config
> > > implementation 100% compatible with pkg-config.
> > >=20
> > > What I propose is to create a new PCADD variable for the Makefiles.
> > >=20
> > > PCADD will invoke pkgconf to gather the libraries and the cflags for a
> > > given project.
> > >=20
> > > The second thing would be to create .pc files for all of our librarie=
s.
> > >=20
> > > for example:
> > > usr.bin/fstat dynamic build is overlinked
> > And how this is better than just removing the unneeded library from
> > the Makefile ?
> >=20
> > For the port consumption, I believe that the better solution is to
> > provide a pack of the .pc files describing base libraries, most likely
> > as port.
>=20
> We should definitely generate some pc files for our base libraries.
> We already have quite a few ports that need to hack around because of
> missing pc files for ssl for example.

This is fine. But making the base build depend on the pkgconf does not
give us anything except complications and overhead, in my opinion.

--h/77pM/XNBmEJr8g
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQIcBAEBAgAGBQJQzD/CAAoJEJDCuSvBvK1B7NwP+gOtvkXZoYL8nYTJGtaokGHU
s35gG1/7y7biksaYBp4c36mNy+MtZ1l2xSeot17su8mf4o53cnh2DPFKOXfJvSx9
1aeEp2QXKn+Etr97n5rUsS+XtlSQeZBOIM+uUtuveuwqmNSNGECELB2+vHvXb0lS
rLDsOsQ1rxoki8fmyr7XTDG1hwz7S12fsC/cytt5vbr3mTuR2WrSDryqek6fOcwd
gc0O6DRn8vRcMJlAsYTxkNunxmb4fg9Seo4NlNTiajwl0juE1g1wHBPN4v8gDT+J
hzTRsNlJX17CWKp1RxSIEMFNOMYYbHz3GyU6cyHe3y708xnTLp8ASvDza8TPATi2
7ekB+ssHrIM8Ntm/Fc0W2iEx3H8Zs/KrTqEAQZqRnQjydt48RHg5/RL0Qvu2TqGZ
pCEDrGbTiNw5vUb4kCkJ1DB6PAQR11vZGHCOVDf7xPpwV5kpJtk5KDRTROhpRlGg
1fOAj2Z+GqZrMDapFu4GW7gPg/YyPH6/xlbtsgZe2NqGgWrJdQ5PKb5zxbQeujdj
G7SMc3fp1lv9YoV/11sJlcBJIJGb5uBT5zephr2i2EMR1X16BrHYewG/YgjU9AME
nNigsfpYmajn8i0geboF7VUHiEji50kQrg/lYbo11PiFg//aKmkzR2BK6wyx0Geb
5Aqj17p7RvEnR+tVsAux
=vDzD
-----END PGP SIGNATURE-----

--h/77pM/XNBmEJr8g--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121215091548.GT71906>