Re: bsd.lib.mk question

2009-07-27 Thread Xin LI
-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 delp...@delphij.nethttp://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-
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


bsd.lib.mk question

2009-07-26 Thread Gábor Kövesdán

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?


Thanks,
Gábor

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: bsd.lib.mk question

2009-07-26 Thread Ed Schouten
Hi Gabor,

* Gábor Kövesdán ga...@kovesdan.org wrote:
 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?

Be sure to look at the Makefiles used by the PAM modules
(lib/libpam/modules). I guess NO_PROFILE and NO_INSTALLLIB should be
sufficient.

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpW43ul3l3zL.pgp
Description: PGP signature