summaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2004-04-16 16:48:27 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2004-04-16 16:48:27 +0000
commit41067a2f4bd064e5cb1e7a2434a70d236cf93067 (patch)
tree2743460612d9a9e2be7c80524c1f8677dee01b0c /gcc/config/pa
parent245c3c04af3e4f256615b0e68c7a14a77a91d6d2 (diff)
downloadgcc-41067a2f4bd064e5cb1e7a2434a70d236cf93067.tar.gz
* pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
From-SVN: r80755
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa64-hpux.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h
index 59288326243..2ae031dc278 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. */