]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
ccf4e18910b577347a532b30132e87407fb21e54
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From c7a99e7a15f1f703ac90fc2a16b2c2115a66a996 Mon Sep 17 00:00:00 2001
2 From: Hongxu Jia <hongxu.jia@windriver.com>
3 Date: Sun, 12 Jun 2016 04:44:29 -0400
4 Subject: [PATCH] tests/Makefile.am: fix undefined reference to
5 `pthread_create'
6
7 Add missing '-lpthread' to CFLAGS
8
9 Upstream-Status: Pending
10
11 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12 ---
13 tests/Makefile.am | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/tests/Makefile.am b/tests/Makefile.am
17 index 3170a58..9a9e1c2 100644
18 --- a/tests/Makefile.am
19 +++ b/tests/Makefile.am
20 @@ -93,7 +93,7 @@ t_mpi_bit_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
21 t_secmem_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
22 testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
23 t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
24 -t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
25 +t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
26 testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE)
27
28 # Build a version of the test driver for the build platform.
29 @@ -112,7 +112,7 @@ else
30 xtestsuite_libs = ../src/.libs/libgcrypt.so*
31 xtestsuite_driver = testdrv
32 t_kdf_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
33 -t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
34 +t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
35 endif
36
37 # xcheck uses our new testdrv instead of the automake test runner.