crypto: fix build with gcrypt enabled
commit46859d939832f666acecd63d7aac6731ade916d9
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 1 Sep 2020 13:30:49 +0000 (1 14:30 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 7 Sep 2020 10:34:17 +0000 (7 12:34 +0200)
tree5bf50d5273ffdd416a6d46bb290ebf0b53e0ecf1
parent6bcb5fc0f7a543320fbfaabbb3ffe4a9db241222
crypto: fix build with gcrypt enabled

If nettle is disabled and gcrypt enabled, the compiler and linker flags
needed for gcrypt are not passed.

Gnutls was also not added as a dependancy when gcrypt is enabled.

Attempting to add the library dependencies at the same time as the
source dependencies is error prone, as there are alot of different
rules for picking which sources to use, and some of the source files
use code level conditionals intead. It is thus clearer to add the
library dependencies separately.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200901133050.381844-2-berrange@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure
crypto/meson.build
meson.build