]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin.h (CPP_SPEC): Handle -pthread, transforming it into -D_REENTRANT.
authorRoger Sayle <roger@eyesopen.com>
Thu, 2 Nov 2006 02:37:38 +0000 (02:37 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 2 Nov 2006 02:37:38 +0000 (02:37 +0000)
* config/darwin.h (CPP_SPEC): Handle -pthread, transforming
it into -D_REENTRANT.

From-SVN: r118408

gcc/ChangeLog
gcc/config/darwin.h

index 65fdde091f26cc599723436a656e8a0393458aca..95d49ac3020429e133abba5692af1acdb640ec37 100644 (file)
@@ -1,3 +1,8 @@
+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
index 35ff8c00ef04fce282216fed3c53bb418cfcd5c2..bbb1f890dbeb8576d97029a6336420f3dfd97884 100644 (file)
@@ -217,7 +217,8 @@ extern GTY(()) int darwin_ms_struct;
    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