Static Linking
Malte Gell
malte.gell at gmx.de
Wed May 5 21:48:20 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 4. Mai 2004 16:15 schrieb Raphael Susewind:
> is it possible to do complete static linking for gnupg, and how? My
> maximum achievement was still dependent on libc6 and ld-linux. Can I
> avoid this?
export CFLAGS="-static"
export CXXFLAGS="-static"
then the usual steps to build gpg.
Though, I guess setting CXXFLAGS is not needed with GnuPG...?
See:
[malte_gell at linux]/tmp/gpg-test/bin· ldd gpg
not a dynamic executable
Keep in mind, if there's a flaw in libc6 or elsewhere you have to build
GnuPG again, because the flaw is now hardwired to your static gpg. To
use GnuPG on a machine which doesn't have the things needed to build/
run GnuPG is the only reason I can imagine why to do this, or what is
your reason? Under normal circumstances it shouldn't be done I think.
Malte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAmUURGzg12gD8wBYRAipvAJ0XioJe0SLOTtoT0J8yUyjYMCesFACggcKk
siytO3f2U+bfiLZd75zAGl8=
=hIoR
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list