diff options
author | Martin Bark <martin@barkynet.com> | 2016-05-16 11:09:10 +0100 |
---|---|---|
committer | Martin Bark <martin@barkynet.com> | 2016-05-16 11:09:10 +0100 |
commit | f983da6a4df051baeb231c60ed9935b1f0022af6 (patch) | |
tree | bc3d601f4e0d2dda57f003598e9cad516a656a6b | |
parent | c7b203be4d8cdf76c0c728fd300a581cfc7002cf (diff) | |
download | iputils-f983da6a4df051baeb231c60ed9935b1f0022af6.tar.gz |
libgcrypt: fix static linking
If iputils is built statically using libgrypt as follows
make USE_NETTLE=no USE_CRYPTO=no USE_GCRYPT=yes CFLAGS=-static
then the code fails to build with errors such as
libgcrypt.a(libgcrypt_la-misc.o): In function `_gcry_fatal_error':
(.text+0x22a): undefined reference to `gpg_strerror'
This is because libgrypt depends on libgpg-error. Solve this by adding
the missing dependency to the Makefile.
Signed-off-by: Martin Bark <martin@barkynet.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ ADDLIB= LDFLAG_STATIC=-Wl,-Bstatic LDFLAG_DYNAMIC=-Wl,-Bdynamic LDFLAG_CAP=-lcap -LDFLAG_GCRYPT=-lgcrypt +LDFLAG_GCRYPT=-lgcrypt -lgpg-error LDFLAG_NETTLE=-lnettle LDFLAG_CRYPTO=-lcrypto LDFLAG_IDN=-lidn |