Commit 5f190838 by John David Anglin Committed by John David Anglin

* pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.

From-SVN: r78632
parent d4cd9d81
2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
2004-02-28 Kazu Hirata <kazu@cs.umass.edu> 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
* genattr.c (main): Don't define * genattr.c (main): Don't define
......
...@@ -57,14 +57,20 @@ Boston, MA 02111-1307, USA. */ ...@@ -57,14 +57,20 @@ Boston, MA 02111-1307, USA. */
%{static:-a archive} %{shared:%{mgnu-ld:-shared}%{!mgnu-ld:-b}}" %{static:-a archive} %{shared:%{mgnu-ld:-shared}%{!mgnu-ld:-b}}"
#endif #endif
/* Like the default, except no -lg. */ /* Profiling support is only provided in libc.a. However, libprof and
libgprof are only available in shared form on HP-UX 11.00. We use
the shared form if we are using the GNU linker or an archive form
isn't available. We also usually need to link with libdld and it's
only available in shared form. */
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
"%{!shared:\ "%{!shared:\
%{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{p:%{!pg:-lprof -lc\ %{p:%{!pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ -lprof %{static:-a archive} -lc\
%{pg:-lgprof -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-lgprof %{static:-a archive} -lc\
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
/usr/lib/pa20_64/milli.a" /usr/lib/pa20_64/milli.a"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment