This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.1b successfully built on HPPA1.1/hpux10.20
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: egcs 1.1b successfully built on HPPA1.1/hpux10.20
- From: Mark Phillips <M dot S dot Phillips at nortel dot co dot uk>
- Date: Fri, 18 Sep 1998 11:30:37 +0100 (BST)
- Cc: Harmanjit Singh <harman at omsi dot com>, egcs at cygnus dot com
What is probably happening is that you are using the HP system ld, now if
that sees -g it deceides to do static linking....
Try adding "-Wl,-a,default" to you egcs link line.
Cheers
Mark
On Thu, 17 Sep 1998, Jeffrey A Law wrote:
>
> In message <xfgn27ya9lf.fsf@omsi14.omsi.com>you write:
> >
> > ./config.guess: hppa1.1-hp-hpux10.20
> >
> > Configured as:
> >
> > ../egcs-1.1b/configure --prefix=/htools/gnu --with-gnu-as --enable-shared
> > make bootstrap
> > make install
> >
> > The default linking of a c++ program is static, how do I change it to
> > use shared libraries? The shared libraries are in /htools/gnu/lib.
> Huh? GCC does not try to statically link code on HP's by default.
>
> The HP linker first looks for dynamic libraries. If none are found,
> then it will look at static libraries. The search priorities can
> be modified by using the -a argument to the HP linker.
>
> GCC by default does not change the HP linker's search priorities.
>
> jeff
>
--
Mark S. Phillips ESN 742 2461
msp@nortel.co.uk Tel. +44 1279 402461