summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2018-05-08 19:04:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-08 19:04:12 +0000
commit9b06ec46255f271f07c8354b90e2cd43ae2e0760 (patch)
tree61362a3a1606fbe697b31bbbe9586a6d6a5e2737
parent7d7577ec541f4396576ea65512da063e4987abe4 (diff)
parente63c29c7603a49d18fee1192a5fe3895a0b05876 (diff)
downloadlibvpx-9b06ec46255f271f07c8354b90e2cd43ae2e0760.tar
libvpx-9b06ec46255f271f07c8354b90e2cd43ae2e0760.tar.gz
libvpx-9b06ec46255f271f07c8354b90e2cd43ae2e0760.tar.bz2
libvpx-9b06ec46255f271f07c8354b90e2cd43ae2e0760.zip
Merge "configure: Disable pthread_h if linking failed"
-rw-r--r--build/make/configure.sh2
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 2 deletions
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 <<EOF && enable_feature pthread_h && add_extralibs -lpthread
+ check_header pthread.h && check_lib -lpthread <<EOF && add_extralibs -lpthread || disable_feature pthread_h
#include <pthread.h>
#include <stddef.h>
int main(void) { return pthread_create(NULL, NULL, NULL, NULL); }
diff --git a/configure b/configure
index b021c1212..702483f13 100755
--- a/configure
+++ b/configure
@@ -585,7 +585,7 @@ EOF
# Use both check_header and check_lib here, since check_lib
# could be a stub that always returns true.
- check_header pthread.h && check_lib -lpthread <<EOF && enable_feature pthread_h
+ check_header pthread.h && check_lib -lpthread <<EOF || disable_feature pthread_h
#include <pthread.h>
#include <stddef.h>
int main(void) { return pthread_create(NULL, NULL, NULL, NULL); }