RFC: static / dynamic linking in samba3
jerry
jerry at samba.org
Fri Apr 3 14:57:35 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Adam wrote:
> * I would also like to (re-)unify the configuration of libwbclient
> with the other libs (libtalloc, libtdb, libnetapi, ...) to be
> configured with SMB_LIBRARY().
> This means that it will also be possible again to build and link
> libwbclient statically, removing the restriction imposed when
> libsmbclient was originally created that it should only be
> possible to build/link libwbclient statically with
> --enable-develper. I think this is artificial. Sometimes you just
> want to link a library statically. Vendors are patching the sources
> to allow for building and linking statically anyways.
...
> A scheme for building (that is basically also what samba4 does)
> initially discussed with Jelmer and Lars (among others)
> on irc could be the following:
>
> - check wheter libfoo is in the system
> and check whether it suits our version requirements
> (current checks use pkg-config for this)
>
> - if libfoo is available and version is ok, then
> adapt compile / link flags according to pkg-config to
> link against that library
>
> - if either the library is not found or version is not ok,
> then build libfoo internally and link it in _statically_
Michael,
Would you clarify one thing for me. By default, will smbd
link with libwbcliebnt.a or libwbclient.so?
cheers, jerry
- --
=====================================================================
Samba ------- http://www.samba.org
Likewise Software --------- http://www.likewise.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJ1iPfIR7qMdg1EfYRAoKvAKDJIdETVsVXIg/nTvlbDv2GBElssQCgmw7s
kJjU6SaagHh71xik3Rq1vgw=
=Dc2C
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list