dhcpd 4.x statically linked binaries
Shane Kerr
Shane_Kerr at isc.org
Thu May 31 12:30:55 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ray Phillips wrote:
> I compile dhcpd 3.x with statically-linked binaries by appending `
> -static' to the `LIBS =' line in Makefile.conf. However, there is no
> Makefile.conf in the dhcp 4.x distribution and Makefile.in only
> mentions LIBS in this line
>
> LIBS = @LIBS@
>
> which I don't understand.
>
> How can I get statically-linked binaries for 4.x?
You can tell the configure script to use alternate compile options like so:
CFLAGS="-static" ./configure
make
When I do this on my own box, I do get a bunch of warnings about various
functions which need shared libraries (getservent, gethostbyname, and so on), so
you may need to do more to get "true" static binaries (maybe I need to change
glibc somehow, or use uClibc).
- --
Shane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGXr/+MsfZxBO4kbQRAhkiAKDoWcx8psXPgPcvlBa/9716t3BXzgCfQS/Q
yBxi9Uc3riTOZ9fXD0RJhjg=
=ZnSK
-----END PGP SIGNATURE-----
More information about the dhcp-users
mailing list