blob: f70e550ff6a3e9b8bb5e95bf79dc3520521e08ac [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From ed0a954983d50267c2fc0bc13aba929ea0cad971 Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 2 May 2017 06:34:40 +0000
4Subject: [PATCH] Add -lpthread to link
5
6When 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
13This is because no pthread to link, so we should add it.
14
15Upstream-Status: Pending
16
17Signed-off-by: Dengke Du <dengke.du@windriver.com>
18---
19 configure.in | 3 ++-
20 1 file changed, 2 insertions(+), 1 deletion(-)
21
22diff --git a/configure.in b/configure.in
23index 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--
372.11.0
38