blob: 5bf0c7f8a32d9a909b246f6e6e5857ad5041ed91 [file] [log] [blame]
Andrew Geissler90fd73c2021-03-05 15:25:55 -06001From cb06d218ee36e303a64f27c690f30040d5d87960 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sun, 12 Jun 2016 04:44:29 -0400
Andrew Geissler90fd73c2021-03-05 15:25:55 -06004Subject: [PATCH] tests/Makefile.am: fix undefined reference to
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005 `pthread_create'
6
7Add missing '-lpthread' to CFLAGS
8
9Upstream-Status: Pending
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Andrew Geissler90fd73c2021-03-05 15:25:55 -060012
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013---
14 tests/Makefile.am | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/tests/Makefile.am b/tests/Makefile.am
Andrew Geissler90fd73c2021-03-05 15:25:55 -060018index ab201f0..1cf82d0 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019--- a/tests/Makefile.am
20+++ b/tests/Makefile.am
Andrew Geissler90fd73c2021-03-05 15:25:55 -060021@@ -75,7 +75,7 @@ t_mpi_bit_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
22 t_secmem_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
23 testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
24 t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
Brad Bishopd7bf8c12018-02-25 22:55:05 -050025-t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
26+t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
Andrew Geissler90fd73c2021-03-05 15:25:55 -060027 testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE)
28
29 # Build a version of the test driver for the build platform.