summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2016-05-16 11:09:10 +0100
committerMartin Bark <martin@barkynet.com>2016-05-16 11:09:10 +0100
commitf983da6a4df051baeb231c60ed9935b1f0022af6 (patch)
treebc3d601f4e0d2dda57f003598e9cad516a656a6b
parentc7b203be4d8cdf76c0c728fd300a581cfc7002cf (diff)
downloadiputils-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--Makefile2
1 files changed, 1 insertions, 1 deletions
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