Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | From c6afc4a4a766478cb6aa6b43a50051881b6318d7 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> |
| 3 | Date: Fri, 3 Mar 2017 22:24:17 +0100 |
| 4 | Subject: [PATCH 7/7] explicitly link libapr against phtread to make gold happy |
| 5 | on test |
| 6 | MIME-Version: 1.0 |
| 7 | Content-Type: text/plain; charset=UTF-8 |
| 8 | Content-Transfer-Encoding: 8bit |
| 9 | |
| 10 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_init' |
| 11 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_settype' |
| 12 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_destroy' |
| 13 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutex_trylock' |
| 14 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_attr_setstacksize' |
| 15 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_create' |
| 16 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_join' |
| 17 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_detach' |
| 18 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_sigmask' |
| 19 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_once' |
| 20 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_key_create' |
| 21 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_getspecific' |
| 22 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_key_delete' |
| 23 | | ../.libs/libapr-1.so: error: undefined reference to 'pthread_setspecific' |
| 24 | | collect2: error: ld returned 1 exit status |
| 25 | | Makefile:114: recipe for target 'globalmutexchild' failed |
| 26 | | make[1]: *** [globalmutexchild] Error 1 |
| 27 | | make[1]: Leaving directory '/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/apr/1.5.2-r0/apr-1.5.2/test' |
| 28 | |
| 29 | Upstream-Status: Pending |
| 30 | |
| 31 | Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com> |
| 32 | --- |
| 33 | configure.in | 1 + |
| 34 | 1 file changed, 1 insertion(+) |
| 35 | |
| 36 | diff --git a/configure.in b/configure.in |
| 37 | index a227e72..cbc0f90 100644 |
| 38 | --- a/configure.in |
| 39 | +++ b/configure.in |
| 40 | @@ -784,6 +784,7 @@ else |
| 41 | APR_PTHREADS_CHECK_RESTORE ] ) |
| 42 | fi |
| 43 | if test "$pthreadh" = "1"; then |
| 44 | + APR_ADDTO(LIBS,[-lpthread]) |
| 45 | APR_CHECK_PTHREAD_GETSPECIFIC_TWO_ARGS |
| 46 | APR_CHECK_PTHREAD_ATTR_GETDETACHSTATE_ONE_ARG |
| 47 | APR_CHECK_PTHREAD_RECURSIVE_MUTEX |
| 48 | -- |
| 49 | 1.8.3.1 |
| 50 | |