EGCS 1.0.3 on hp-ux 9.05 always links libm static
Mark Phillips
M.S.Phillips@nortel.co.uk
Thu May 21 09:00:00 GMT 1998
Hi there,
I've just installed egcs 1.0.3 under hp-ux 9.05 and discovered that it
always links libm statically.
This is because the specs file prepends -L/lib/pa1.1 to the link line
passed to the system linker (that dir only has a static libm.a and a
libM.a).
I suggest you apply the following patch to remove it (gcc 2.7.2.1 does not
have it):-
--- lib/gcc-lib/hppa1.1-hp-hpux9.05/egcs-2.90.29/specs.orig Thu May 21
13:36:51 1998
+++ lib/gcc-lib/hppa1.1-hp-hpux9.05/egcs-2.90.29/specs Thu May 21
16:17:43 1998
@@ -17,7 +17,7 @@
*link:
-%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }} -z
%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}
+%{!mpa-risc-1-0:%{!shared:-L/usr/lib/pa1.1 }} -z %{mlinker-opt:-O}
%{!shared:-u main} %{static:-a archive} %{shared:-b}
*lib:
%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}
Mark S. Phillips ESN 742 2461
msp@nortel.co.uk Tel. +44 1279 402461
More information about the Gcc-bugs
mailing list