Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From ed0a954983d50267c2fc0bc13aba929ea0cad971 Mon Sep 17 00:00:00 2001 |
| 2 | From: Dengke Du <dengke.du@windriver.com> |
| 3 | Date: Tue, 2 May 2017 06:34:40 +0000 |
| 4 | Subject: [PATCH] Add -lpthread to link |
| 5 | |
| 6 | When building the php-5.6.26, the following errors occured: |
| 7 | |
| 8 | ld: TSRM/.libs/TSRM.o: undefined reference to symbol |
| 9 | 'pthread_sigmask@@GLIBC_2.2.5' |
| 10 | |
| 11 | error adding symbols: DSO missing from command line |
| 12 | |
| 13 | This is because no pthread to link, so we should add it. |
| 14 | |
| 15 | Upstream-Status: Pending |
| 16 | |
| 17 | Signed-off-by: Dengke Du <dengke.du@windriver.com> |
| 18 | --- |
| 19 | configure.in | 3 ++- |
| 20 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 21 | |
| 22 | diff --git a/configure.in b/configure.in |
| 23 | index a467dff1..9afef652 100644 |
| 24 | --- a/configure.in |
| 25 | +++ b/configure.in |
| 26 | @@ -1058,7 +1058,8 @@ case $php_sapi_module in |
| 27 | ;; |
| 28 | esac |
| 29 | |
| 30 | -EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" |
| 31 | +PTHREAD_LIBS="-lpthread" |
| 32 | +EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS $PTHREAD_LIBS" |
| 33 | |
| 34 | dnl this has to be here to prevent the openssl crypt() from |
| 35 | dnl overriding the system provided crypt(). |
| 36 | -- |
| 37 | 2.11.0 |
| 38 | |