From dde02b27dfbdad6ed7c1320fba26faad995ee289 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 14 Apr 2021 19:17:30 +0300 Subject: [PATCH] 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. --- src/lib-oauth2/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.47.3