diff options
Diffstat (limited to 'meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch')
-rw-r--r-- | meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch b/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch new file mode 100644 index 0000000000..5ebc3831d4 --- /dev/null +++ b/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 746dc1c3837546c1085102e546a83da8d1c773e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Collin Funk <collin.funk1@gmail.com> | ||
3 | Date: Thu, 1 May 2025 22:20:58 -0700 | ||
4 | Subject: [PATCH] tests: Fix link errors for t-thread-local. | ||
5 | |||
6 | On platforms where pthread_create is not in libc t-thread-local fails to | ||
7 | link. Issue found on NetBSD 10.0. | ||
8 | * tests/Makefile.am (t_thread_local_LDADD): Add $(standard_ldadd), | ||
9 | $(GPG_ERROR_MT_LIBS), and @LDADD_FOR_TESTS_KLUDGE@. | ||
10 | (t_thread_local_CFLAGS): Add $(GPG_ERROR_MT_CFLAGS). | ||
11 | |||
12 | -- | ||
13 | |||
14 | Upstream-Status: Backport [793eda7b258a562757b51c96044b103b638f1a63] | ||
15 | GnuPG-bug-id: 7634 | ||
16 | Signed-off-by: Collin Funk <collin.funk1@gmail.com> | ||
17 | Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> | ||
18 | --- | ||
19 | tests/Makefile.am | 2 ++ | ||
20 | 1 file changed, 2 insertions(+) | ||
21 | |||
22 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
23 | index 9a9e1c2c264a..b80f266f97c2 100644 | ||
24 | --- a/tests/Makefile.am | ||
25 | +++ b/tests/Makefile.am | ||
26 | @@ -94,6 +94,8 @@ t_secmem_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ | ||
27 | testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ | ||
28 | t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@ | ||
29 | t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread | ||
30 | +t_thread_local_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@ | ||
31 | +t_thread_local_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread | ||
32 | testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE) | ||
33 | |||
34 | # Build a version of the test driver for the build platform. | ||