autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #8186] ax_pthread adds -pthread when it should not on OSX whe


From: Peter Johansson
Subject: Re: [patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang
Date: Thu, 26 Sep 2013 08:47:12 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]