Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | From 9182bc2dc676858a823c477d8f45a578b8c4f69f Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Sun, 12 Jun 2016 04:44:29 -0400 |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 4 | Subject: [PATCH] tests/Makefile.am: fix undefined reference to |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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> |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 12 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | --- |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 14 | tests/Makefile.am | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
| 17 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 18 | index e6953fd..f47e1d3 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | --- a/tests/Makefile.am |
| 20 | +++ b/tests/Makefile.am |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 21 | @@ -76,7 +76,7 @@ t_mpi_bit_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | -t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) |
| 26 | +t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 27 | testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE) |
| 28 | |
| 29 | # Build a version of the test driver for the build platform. |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 30 | @@ -95,7 +95,7 @@ else |
| 31 | xtestsuite_libs = ../src/.libs/libgcrypt.so* |
| 32 | xtestsuite_driver = testdrv |
| 33 | t_kdf_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@ |
| 34 | -t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS) |
| 35 | +t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread |
| 36 | endif |
| 37 | |
| 38 | # xcheck uses our new testdrv instead of the automake test runner. |