]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework PRIVATELIB
authorBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 4 May 2015 16:28:54 +0000 (16:28 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 4 May 2015 16:28:54 +0000 (16:28 +0000)
commit5551c573554e4bb755565098222d0d74fa83e5cb
tree5cd31e3767f29d82f87cfe495e4ebad8fb41da45
parent98becbfc3c40540968109c02d504fa1bec1adc78
Rework PRIVATELIB

Now when a lib is marked as PRIVATELIB it is renamed into libprivate$foo instead
of being installed in /usr/lib/private and playing with rpath.

Also allow to install headers for PRIVATELIBS in that case the headers will be
installed in /usr/include/private/$foo

Keep the headers under a private namespace to prevent third party build system
to easily find them to ensure they are only used on purpose.

This allows for non base applications to statically link against a library in
base which is linked to a privatelib

Treating PRIVATELIBS as regular libraries allows to push them into our current
compatX packages if needed.

While here finish promotion of libevent as PRIVATELIB
Install header for bsdstat and libucl

Differential Revision: https://reviews.freebsd.org/D2365
Reviewed by: brooks, des
Discussed with: imp
ObsoleteFiles.inc
etc/mtree/BSD.usr.dist
lib/libevent/Makefile
lib/libucl/Makefile
share/mk/atf.test.mk
share/mk/bsd.incs.mk
share/mk/bsd.lib.mk
share/mk/bsd.prog.mk
share/mk/src.libnames.mk