From 8cd2fe7b3de4abd2331bcb637b7e2c26ce4faa29 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 11 Nov 2021 10:08:59 +0900 Subject: [PATCH] tests: Use GPG_ERROR_MT_LIBS for a test with threads. * tests/Makefile.am (run_threaded_CPPFLAGS): New. (run_threaded_LDADD): Replace GPG_ERROR_LIBS to GPG_ERROR_MT_LIBS. -- Reported-by: Ben Kibbey Fixes-commit: d0402f886b720d03369887c807581bd980ee70cf Signed-off-by: NIIBE Yutaka --- tests/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 8950e965..e4346576 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -37,8 +37,9 @@ noinst_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \ run-verify run-encrypt run-identify run-decrypt run-genkey \ run-keysign run-tofu run-swdb run-threaded -run_threaded_LDADD = ../src/libgpgme.la -lpthread @GPG_ERROR_LIBS@ \ - @LDADD_FOR_TESTS_KLUDGE@ +run_threaded_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_MT_CFLAGS@ +run_threaded_LDADD = ../src/libgpgme.la \ + @GPG_ERROR_MT_LIBS@ @LDADD_FOR_TESTS_KLUDGE@ if RUN_GPG_TESTS gpgtests = gpg json