pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT when _HPUX_SOURCE is defined.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Thu, 10 Mar 2011 23:07:15 +0000 (23:07 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 10 Mar 2011 23:07:15 +0000 (23:07 +0000)
* 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.

From-SVN: r170855

gcc/ChangeLog
gcc/config/pa/pa-hpux10.h

index 45b83c8994b8873d08cdd0420c342465b8946f3b..4c6a480294fad21768497ce7c6daae1694d3efb7 100644 (file)
@@ -1,3 +1,9 @@
+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
index ecb525fd8a5f42989e49e5870653d9b5145adf4d..bfe09f24729c3607cf439d76d8262c2cbfa1bc75 100644 (file)
@@ -42,12 +42,14 @@ along with GCC; see the file COPYING3.  If not see
        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");                          \
@@ -111,7 +113,7 @@ along with GCC; see the file COPYING3.  If not see
   "%{!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}}}}"