From f983da6a4df051baeb231c60ed9935b1f0022af6 Mon Sep 17 00:00:00 2001 From: Martin Bark Date: Mon, 16 May 2016 11:09:10 +0100 Subject: 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5eb6aaa..e60ed80 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.1