summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-06-07 23:17:13 +0200
committerSami Kerola <kerolasa@iki.fi>2019-06-09 14:43:02 +0100
commiteabe21164bbb29dead1a902b6d6e910f6892e3a7 (patch)
tree11243cb74ba519f4c291e473742ef2dd9bf757a0
parentbda31691cce6f8ce5a245081b21853586be401de (diff)
downloadiputils-eabe21164bbb29dead1a902b6d6e910f6892e3a7.tar.gz
build-sys: fix static build gcrypt dependency gpg-error
The gcrypt depends on gpg-error, so find it's availability and link with it when needed to fix static build. Fixes: - http://autobuild.buildroot.net/results/fb698e3e903869978bd5e69d791ec362317b7981 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r--meson.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 84e4360..3766edc 100644
--- a/meson.build
+++ b/meson.build
@@ -101,20 +101,22 @@ else
endif
crypto = get_option('USE_CRYPTO')
+crypto_dep = []
if crypto == 'nettle'
- crypto_dep = dependency('nettle')
+ crypto_dep += dependency('nettle')
conf.set('USE_NETTLE', 1, description : 'If set use nettle crypto library.')
elif crypto == 'gcrypt'
- crypto_dep = cc.find_library('gcrypt')
+ crypto_dep += cc.find_library('gcrypt')
+ crypto_dep += dependency('gpg-error', required : true)
conf.set('USE_GCRYPT', 1, description : 'If set use gcrypt crypto library.')
elif crypto == 'openssl'
- crypto_dep = dependency('openssl')
+ crypto_dep += dependency('openssl')
conf.set('USE_OPENSSL', 1, description : 'if set use openssl crypto library.')
elif crypto == 'kernel'
- crypto_dep = dependency('disabler-appears-to-disable-executable-build', required : false)
+ crypto_dep += dependency('disabler-appears-to-disable-executable-build', required : false)
conf.set('USE_KERNEL_CRYPTO_API', 1, description : 'if set use Linux kernel Crypto API.')
elif crypto == 'none'
- crypto_dep = dependency('disabler-appears-to-disable-executable-build', required : false)
+ crypto_dep += dependency('disabler-appears-to-disable-executable-build', required : false)
conf.set('PING6_NONCE_MEMORY', 1,
description : 'If set RFC6744 random does not use any CRYPTO lib.')
endif