autoconf-archive-maintainers | |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #8186] ax_pthread adds -pthread when it should not on OSX when co
From: |
Bernd Kuhls |
Subject: |
[patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang |
Date: |
Mon, 13 Jun 2016 19:26:42 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #24, patch #8186 (project autoconf-archive):
Hi,
the latest version bump of the libmicrohttpd package to 0.9.50 included
bumping the serial of ax_pthread.m4 from 21 to 23.
This bump includes changes to the way configure looks for pthread support.
On Linux the macro _REENTRANT is now being searched for:
https://github.com/peti/autoconf-archive/commit/39683064bbccb4008f239262cb681a970bf53603#diff-851a07ee321dc42003ac94cf4a9628faR211
which fails at least on arc and blackfin.
Before the autoconf update _REENTRANT was not searched on Linux:
https://github.com/peti/autoconf-archive/commit/39683064bbccb4008f239262cb681a970bf53603#diff-851a07ee321dc42003ac94cf4a9628faL273
This leads to problems detected by the buildroot autobuilders on blackfin and
arc:
http://autobuild.buildroot.net/results/593/593b5050473a83a9ddcada9de39f8f14ab38d554//libmicrohttpd-0.9.50/config.log
configure:13932: checking whether pthreads work with -pthread
configure:14026:
/home/test/autobuild/instance-3/output/host/usr/bin/bfin-linux-uclibc-gcc
-std=gnu99 -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -pthread -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
conftest.c:30:26: error: #error "_REENTRANT must be defined"
http://autobuild.buildroot.net/results/ff0/ff058a378b91740b5b399f32a6b375fbc3c8df06//libmicrohttpd-0.9.50/config.log
configure:13984: checking for the pthreads library -lpthread
configure:14026:
/home/test/autobuild/instance-0/output/host/usr/bin/arc-linux-gcc -std=gnu99
-o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-matomic -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 conftest.c -lpthread >&5
conftest.c:30:26: error: #error "_REENTRANT must be defined"
Disabling ax_pthread_check_macro="_REENTRANT" for Linux fixed the problem.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8186>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang,
Bernd Kuhls <=