From: Martin Storsjo Date: Thu, 19 Apr 2018 05:55:44 +0000 (+0300) Subject: configure: Use both check_header and check_lib for pthreads X-Git-Tag: v1.8.0~729 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b7d4cce635e226f8a932576df22237c67321e5d;p=libvpx configure: Use both check_header and check_lib for pthreads check_lib can be a stub that always returns true - make sure to still use check_headers as before 38dc27cc6. Change-Id: I5d471de56b16c015a0b686fa6c6caefa35bb89b4 --- diff --git a/build/make/configure.sh b/build/make/configure.sh index 5efafdf95..876255bfe 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -1491,7 +1491,7 @@ EOF # bionic includes basic pthread functionality, obviating -lpthread. ;; *) - check_lib -lpthread < #include int main(void) { return pthread_create(NULL, NULL, NULL, NULL); } diff --git a/configure b/configure index 3174a9f4b..b021c1212 100755 --- a/configure +++ b/configure @@ -582,7 +582,10 @@ process_detect() { int main(void) {return 0;} EOF # check system headers - check_lib -lpthread < #include int main(void) { return pthread_create(NULL, NULL, NULL, NULL); }