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: |
Daniel Richard G. |
Subject: |
[patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang |
Date: |
Tue, 04 Aug 2015 04:57:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36 |
Follow-up Comment #20, patch #8186 (project autoconf-archive):
Hi Heikki,
-D_REENTRANT and -D_THREAD_SAFE can be removed from your build scripts;
AX_PTHREAD now takes care of adding these to PTHREAD_CFLAGS on certain
platforms. It's possible that some platforms will then lose one/both of these
flags (do note that they can be defined implicitly by -mt et al.) but this is
correct behavior if the system headers do not make use of those cpp symbols.
-D_POSIX_PTHREAD_SEMANTICS is, of course, not handled by AX_PTHREAD. It
appears to be applicable only to Solaris. Should I add this to the
special-flags section of the macro?
The build farms logs are extraordinarily helpful! Thank you for running this
draft version through there!
I see a number of Clang builds now use no pthreads option flag at all (though
retaining -D flags). None of those builds broke, but please let me know if
there is any negative effect from dropping the options.
smew is running a fairly old version of Clang that my draft did not handle
correctly. I'm surprised that build didn't break. I've fixed the issue there.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8186>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/