A patch for hppa1.1-hp-hpux10.20 w/ --enable-shared

Neal Becker neal@ctd.comsat.com
Wed Dec 3 12:54:00 GMT 1997


>>>>> "Jeffrey" == Jeffrey A Law <law@cygnus.com> writes:

    Jeffrey>   In message < 199712031633.RAA04897@baht.labs.trema.com >you write:
    >> From:  Neal Becker <neal@ctd.comsat.com>
    >> Date:  03 Dec 1997 11:23:30 -0500
    >> 
    >> Actually, gcc-2.7.2.2 has this in the specs:
    >> 
    >> *libgcc:
    >> %{!shared:-lgcc}
    >> 
    >> which I guess is the same thing change you're recommending to egcs.
    >> Well it's been working fine for gcc-2.7.2.2, so I guess this is the
    >> Right Thing To Do.
    >> 
    >> Yes, that was the default in 2.7.2, and seems to have been changed
    >> at Dec 4 1995 according to ChangeLog.10.
    Jeffrey> You have to link with libgcc when building a shared library so that hte
    Jeffrey> shared library has copies of any libgcc2 functions it may need.

Which means you have to build a pic version of libgcc, right?  On
hpux9, at least, you can't link a shared lib against non-pic code.



More information about the Gcc mailing list