This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]