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: Tue, 24 Sep 2013 13:06:23 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

On 09/22/2013 02:36 AM, Daniel Richard G. wrote:
Follow-up Comment #3, patch #8186 (project autoconf-archive):

I haven't worked with Clang yet, but from a bit of searching around, it seems
that -pthread will either cause the compiler to complain harmlessly, or be
recognized as a proper option in newer versions.

Hi,

I noticed that gnulib adds '-Werror -Wunknown-warning-option' to CFLAGS when Clang is in use, before trying to detect whether an option is OK or not. Perhaps that approach would be useful here too.

http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=m4/warnings.m4;h=e3d239b64ffbc737d4f6ce993355c477a4884925;hb=HEAD

Cheers,
Peter


What's the specific failure mode that the patch intends to avoid? Is it a hard
error? Warning noise? It would be helpful to see some copy-and-pasted messages
from the compiler.

     _______________________________________________________

Reply to this item at:

   <http://savannah.gnu.org/patch/?8186>

_______________________________________________
   Message sent via/by Savannah
   http://savannah.gnu.org/




--
Peter Johansson




reply via email to

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