Howto build GnuPG 2.1.18 and up without dynamic linking

lugarius at riseup.net lugarius at riseup.net
Thu Feb 9 19:34:05 CET 2017


Hello Devs,

I am a young programmer and I'd like to learn how to compile Gpg 
complete static on any Linux machine
(in some kind of sandbox so that the instructions are the same on every 
distribution).

I tried it by setting on every compilation the CFLAGS to “-static” but 
it resulted with an error.
What I learn here gets blogged so others don't have to ask again.
(I only need the gpg2 binary if it helps to cut out some dependencies)


Thank you.

Lugarius



More information about the Gnupg-devel mailing list