From: Aki Tuomi Date: Wed, 14 Apr 2021 16:17:30 +0000 (+0300) Subject: lib-oauth2: test-oauth2-jwt - Fix linkage for openssl X-Git-Tag: 2.3.16~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dde02b27dfbdad6ed7c1320fba26faad995ee289;p=thirdparty%2Fdovecot%2Fcore.git lib-oauth2: test-oauth2-jwt - Fix linkage for openssl Without whole archive option ssl_iostream_unref isn't included in linkage, which will prevent libdcrypt from loading openssl backend. --- diff --git a/src/lib-oauth2/Makefile.am b/src/lib-oauth2/Makefile.am index a841a524dd..458b61274c 100644 --- a/src/lib-oauth2/Makefile.am +++ b/src/lib-oauth2/Makefile.am @@ -59,6 +59,9 @@ test_oauth2_json_DEPENDENCIES = $(test_deps) test_oauth2_jwt_SOURCES = test-oauth2-jwt.c test_oauth2_jwt_LDADD = $(test_libs) +if HAVE_WHOLE_ARCHIVE +test_oauth2_jwt_LDFLAGS = -Wl,$(LD_WHOLE_ARCHIVE),../lib-ssl-iostream/.libs/libssl_iostream.a,$(LD_NO_WHOLE_ARCHIVE) +endif test_oauth2_jwt_DEPENDENCIES = $(test_deps) check-local: