commit ecd930163de47ed56c021f62d275f3100c46da90 parent 2752c3eddc34e3024696153aeb0c65297d57a11f Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 6 Dec 2025 19:47:21 +0100 -fix linker issue Diffstat:
| M | src/mhd2/Makefile.am | | | 12 | ++++++++---- |
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/mhd2/Makefile.am b/src/mhd2/Makefile.am @@ -163,6 +163,14 @@ if MHD_MD5_EXTR md5_ext.h \ mhd_md5.h +if MHD_SUPPORT_MBEDTLS +# mhd_rng.c always links against mbedcrypto if it is at +# all supported, not only for hashing (which we deal with below) + crypt_LDFLAGS += $(MBEDTLS_LDFLAGS) + crypt_LIBDEPS += $(MBEDTLS_LIBS) -lmbedcrypto +endif + + if MHD_SUPPORT_OPENSSL md5_OPTSOURCES += \ md5_ext_openssl.c @@ -216,10 +224,6 @@ if MHD_SUPPORT_GNUTLS else sha256_OPTSOURCES += \ sha256_ext_mbedtls.c - crypt_LDFLAGS += \ - $(MBEDTLS_LDFLAGS) - crypt_LIBDEPS += \ - -lmbedcrypto endif endif