From e63c29c7603a49d18fee1192a5fe3895a0b05876 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 4 May 2018 09:32:41 +0300 Subject: configure: Disable pthread_h if linking failed When doing both check_header and check_lib, the check_header call will already enable pthread_h if the header was found. This was overlooked when the pthread linking check was amended into a header check and a separate linking check in 9b7d4cce635e. This brings back the same result as the original check in 38dc27cc6. Change-Id: I0efb38f5780f7c79e2eb2b14290d6094096ea222 --- build/make/configure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/make/configure.sh') diff --git a/build/make/configure.sh b/build/make/configure.sh index 876255bfe..c4e3b5141 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -1491,7 +1491,7 @@ EOF # bionic includes basic pthread functionality, obviating -lpthread. ;; *) - check_header pthread.h && check_lib -lpthread < #include int main(void) { return pthread_create(NULL, NULL, NULL, NULL); } -- cgit v1.2.3