diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2011-03-10 23:07:15 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2011-03-10 23:07:15 +0000 |
commit | 5de27cca46673811788adb86d647bf71381c3de1 (patch) | |
tree | 7380152bae97f8f640dc60d5ab573a66817d9fa7 /gcc/config | |
parent | 18d920539d6d7f5be5a1eb58613da4f91f26fbfb (diff) | |
download | gcc-5de27cca46673811788adb86d647bf71381c3de1.zip gcc-5de27cca46673811788adb86d647bf71381c3de1.tar.gz gcc-5de27cca46673811788adb86d647bf71381c3de1.tar.bz2 |
pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT when _HPUX_SOURCE is defined.
* 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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/pa/pa-hpux10.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/pa/pa-hpux10.h b/gcc/config/pa/pa-hpux10.h index ecb525f..bfe09f2 100644 --- a/gcc/config/pa/pa-hpux10.h +++ b/gcc/config/pa/pa-hpux10.h @@ -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}}}}" |