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

[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: Wed, 15 Jun 2016 04:23:15 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36

Follow-up Comment #25, patch #8186 (project autoconf-archive):

Hi Bernd,

The _REENTRANT macro is supposed to be #defined as a side effect of the
-pthread option when passed to GCC on Linux. This is part of how AX_PTHREAD
determines that it has found the correct option.

As a workaround for now, you may call AC_DEFINE(_REENTRANT) before AX_PTHREAD,
so that the macro is unconditionally defined. This may interfere with the
pthread check, but it is better than the check failing.

I will need you to file a bug against the blackfin and arc compilers. Unless
they have a good reason, it is incorrect for them not to #define _REENTRANT
when the -pthread option is given. This is the standard behavior for GCC on
Linux, because support for POSIX threads implies that re-entrant function
variants should be used, which is specified by this macro.

(This #define is supposed to be in the GCC machine spec files, and as these
architectures are more specialized, it is plausible that they have not
received as much attention on minor details like this.)

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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