]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-oauth2: test-oauth2-jwt - Fix linkage for openssl
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 14 Apr 2021 16:17:30 +0000 (19:17 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 19 Apr 2021 09:02:14 +0000 (09:02 +0000)
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

index a841a524dd2422f564e0034623bb43539f518832..458b61274cd2004ad31956322f9c3ce5776b0a83 100644 (file)
@@ -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: