re PR libgomp/28296 (libgomp fails to configure on Tru64 UNIX)

PR libgomp/28296
	Backport from mainline.
	* config/darwin.h (CPP_SPEC): Handle -pthread, transforming
	it into -D_REENTRANT.

From-SVN: r121649
This commit is contained in:
Roger Sayle
2007-02-06 15:09:17 +00:00
committed by Roger Sayle
parent 2041f58574
commit 4527e3ce89
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2007-02-06 Roger Sayle <roger@eyesopen.com>
PR libgomp/28296
Backport from mainline.
* config/darwin.h (CPP_SPEC): Handle -pthread, transforming
it into -D_REENTRANT.
2007-02-05 Alexandre Oliva <aoliva@redhat.com>
PR debug/30189

View File

@@ -214,7 +214,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