As libminitasn1.la is always built a static library, linking it twice
makes linking fail because of duplicated symbols. This also stops
including <nettle/bignum.h> as it is unused and causing compile error
on macOS homebrew:
In file included from p11_pk.c:32:
/opt/homebrew/Cellar/nettle/3.10.2/include/nettle/bignum.h:50:11: fatal error: 'gmp.h' file not found
# include <gmp.h>
^~~~~~~
1 error generated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
p11_pk.c p11_mac.c p11_mac.h
libgnutls_pkcs11_la_LIBADD = $(P11_KIT_LIBS) $(LIBPMULTITHREAD)
-
-if ENABLE_MINITASN1
-libgnutls_pkcs11_la_LIBADD += ../minitasn1/libminitasn1.la
-else
-libgnutls_pkcs11_la_LIBADD += $(LIBTASN1_LIBS)
-endif
#include "p11_provider.h"
#include "x509/x509_int.h"
-#include <nettle/bignum.h>
#include <p11-kit/pkcs11.h>
struct p11_mac_ctx;
#include <libtasn1.h>
#include <minmax.h>
-#include <nettle/bignum.h>
#include <p11-kit/pkcs11.h>
static bool mechanism_exists(CK_MECHANISM_TYPE mech)