This is the mail archive of the gcc-bugs@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]

Re: HP-UX and Shared libraries


I had a failure with shared libs as well. I didn't havve time to
chase it down then, and have been waiting for .3 ;)

The build was done in a host specific directory;
../configure --host=hppa1.1-hp-hpux9.01 --with-gnu-as --enable-shared \
--norecursion
gcc was 2.8.0. Looking over the log, 2 things pop right out.
First is that it is giving the '...-g disabled..." as if it was
not using gas. Everything in libiberty is compiled -fPIC ( seems
a bit over the top, -fpic should be fine here ) There is no
attempt to link a shared version, only the ar'ed libiberty.a.

Memory is that it also failed to link the X11R6 shared libs
when I tested that as well. The build logs are no more I'm
afraid.

Would it be possible to have say -shared, `do the right things'?
Compile -fpic and feed the linker OR ar the `right stuff' to
output a shareable for the host? This would vary by host and
configuration, but would be a major win if there was one lot
of majik words for any makefile ;) Well, almost any.



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