bsd.lib.mk question

Xin LI delphij at delphij.net
Mon Jul 27 21:59:44 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Gábor Kövesdán wrote:
> Hi,
> 
> I wonder if there's a conventional way of building _only_ shared
> libraries using bsd.lib.mk. At default, it builds static, shared and
> profiled libraries, which is a waste of time because I only need shared
> libraries, which I use as on-demand loadable modules. Adjusting _LIBS
> after the inclusion of bsd.lib.mk doesn't help and there are no knobs to
> control the behaviour. What should I do?

If you define LIB= (or, not define it at all), and define both SHLIB and
SHLIB_MAJOR, then only shared library is being built and installed.

Example:

LIB=
SHLIB=		test
SHLIB_MAJOR=	0

Would build libtest.so.0, but no libtest.a nor libtest_p.a.

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkpuIwEACgkQi+vbBBjt66C50gCgul420W4siZi3VBA2ZnHxNz4J
UesAoMIoSzqF0rE6TzvZ5/D0vyjbTc71
=Y5xW
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list