Bug/Oddity when bootstrapping egcs-1.1b using HP-cc

Ralf Hildebrandt R.Hildebrandt@tu-bs.de
Tue Sep 29 13:41:00 GMT 1998


The egcs version 
egcs-1.1b (release)

The system type 
HP-UX 10.20 on a 735/99 HPPA1.1

All options you passed to egcs 
configure --prefix=/users2/local --with-gnu-as --enable-shared

While building egcs-1.1b I thought it might be usefule to use HP's Ansi cc
to bootstrap egcs. So I did:
export CC=cc
export CFLAGS=
export LDFLAGS=
cd objdir
srcdir/configure --prefix=/users2/local --with-gnu-as --enable-shared

configure finished successfully, but during 
make bootstrap-lean I got the warning that the option
-f is not being recognized.

HP's cc uses +z or +Z instead of -fpic / -fPIC to generate position independent code !

So use of -fpic or -fPIC should be made dependent on if gcc is used to
bootstrap egcs !

I cite from the man-page of HP-cc:

      +z,+Z          Both of these options cause the compiler to generate
                     position independent code (PIC) for use in building
                     shared libraries.  The -G and -p options are ignored if
                     +z or +Z is used.  Normally, +z should be used to
                     generate PIC; however, when certain limits are
                     exceeded, +Z is required to generate PIC.  The ld
                     linker issues the error indicating when +Z is required.
                     If both +z and +Z are specified, only the last one
                     encountered applies.  For a more complete discussion
                     regarding PIC and these options, see HP-UX Linker and
                     Libraries Online User's Guide and the manual
                     Programming on HP-UX.

Cheers,
Ralf

-- 
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: EkwLmYaeBP9Ciwix+FG2HHnltldd4cT/

iQCVAwUBNhEQsknh/jPvZzKNAQGCmQP+OYtGFrr8CK+mqQhcZkt10pZMNtMVWLuh
WO+g5VMEVytwcHZmb9H7jQTC9WXD4Yl1ol2g3PKVv0fwNoa05g3Did5MYUgvCUZD
MRbNCY9VpSGc8HA6PQhf46O+qopmaJmEbcqMWvuTiXX4y3TRq1Xd7KB76B0y28WH
VEGxCBDGH54=
=F6D6
-----END PGP SIGNATURE-----


More information about the Gcc-bugs mailing list