Re: [patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang
Peter Johansson <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.archive-maintainers |
|---|---|
| Message-ID | <[email protected]> |
On 09/26/2013 06:31 AM, Daniel Richard G. wrote: > On Wed, 2013 Sep 25 18:21+1000, Peter Johansson wrote: >> Sorry if I was too brief. My thought was that perhaps it'd be better >> to have feature test, i.e., actually test if the compiler runs with >> '-pthread', and then the mentioned option would be useful on Clang. > The problem appears to be that Clang blithely accepts options it doesn't > recognize, printing a warning at most. Without some additional flag to > disable this behavior, there's no good way to implement a feature test. My understanding is that's exactly what gnulib folks are doing when they add '-Werror -Wunknown-warning-option' to CFLAGS. An extra complexity is that these flags won't work with every compiler so they have a feature test to check if the option is accepted by compiler. Cheers, Peter > > --Daniel > > -- Peter Johansson