* config/darwin.h (CPP_SPEC): Handle -pthread, transforming
it into -D_REENTRANT.
From-SVN: r118408
+2006-11-01 Roger Sayle <roger@eyesopen.com>
+
+ * config/darwin.h (CPP_SPEC): Handle -pthread, transforming
+ it into -D_REENTRANT.
+
2006-11-01 Roger Sayle <roger@eyesopen.com>
* configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
them to darwin_cpp_builtins in darwin-c.c. */
#undef CPP_SPEC
-#define CPP_SPEC "%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}"
+#define CPP_SPEC "%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}" \
+ " %{pthread:-D_REENTRANT}"
/* This is mostly a clone of the standard LINK_COMMAND_SPEC, plus
precomp, libtool, and fat build additions. Also we