+2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
+ when _HPUX_SOURCE is defined.
+ (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
+
2011-03-10 Jason Merrill <jason@redhat.com>
PR c++/48029
if (c_dialect_cxx ()) \
{ \
builtin_define ("_HPUX_SOURCE"); \
+ builtin_define ("_REENTRANT"); \
builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDCPP__"); \
} \
else if (!flag_iso) \
{ \
builtin_define ("_HPUX_SOURCE"); \
+ builtin_define ("_REENTRANT"); \
if (preprocessing_trad_p ()) \
{ \
builtin_define ("hp9000s800"); \
"%{!shared:\
%{!p:%{!pg:\
%{!threads:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}\
- %{threads:-lcma -lc_r}}}\
+ %{threads:-lcma -lc}}}\
%{p:%{!pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}"