This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with collect2 on hpux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: Warren_Baird at cimmetry dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 15 Jun 2005 00:00:14 -0400 (EDT)
- Subject: Re: Problems with collect2 on hpux
> > It's not very nice that the shared library list for libstdc++.sl
> > includes libgcc_s.sl in the GCC build directory. I believe that the
> > HP dynamic loader first looks for it there. If that doesn't work,
> > it strips off the basename of the library and tries the dynamic
> > search path.
>
> Yeah, I had to fix that problem first by going into the libstdc++ dir, and
> doing a "make clean ; make LDFLAGS=-Wl,+s"
>
> Wouldn't it make sense to do this by default? Should I submit a patch to
> do that?
This is mainly a libtool issue. That's where the '+b" embedded path
option is set. I'm not sure why +b was preferred to +s.
There are pros and cons to this. Generally, it's not a good idea
to add unnecessary options, especially if the user can add them when
desired.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)