From ce782e0668de38074bcaf0809c9368403dc090ee Mon Sep 17 00:00:00 2001 From: danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri, 16 Apr 2004 16:48:27 +0000 Subject: [PATCH] * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80755 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/pa/pa64-hpux.h | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92cb754a3c09..ea832cb1888c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld. + 2004-04-16 Nick Clifton <nickc@redhat.com> * config/arm/arm.c (arm_override_options): Revert previous patch. diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index 592883262436..2ae031dc2784 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -63,6 +63,18 @@ Boston, MA 02111-1307, USA. */ isn't available. We also usually need to link with libdld and it's only available in shared form. */ #undef LIB_SPEC +#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD) +#define LIB_SPEC \ + "%{!shared:\ + %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ + %{p:%{!pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ + -lprof %{static:-a archive} -lc\ + %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ + %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ + -lgprof %{static:-a archive} -lc\ + %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ + /usr/lib/pa20_64/milli.a" +#else #define LIB_SPEC \ "%{!shared:\ %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ @@ -73,6 +85,7 @@ Boston, MA 02111-1307, USA. */ -lgprof %{static:-a archive} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ /usr/lib/pa20_64/milli.a" +#endif /* Under hpux11, the normal location of the `ld' and `as' programs is the /usr/ccs/bin directory. */ -- GitLab