During the last week a couple of people on both the user and developers
lists have complained bitterly about RH-7.0's gcc release and the desire
to switch to gcc-2.95.2. Others have then countered with arguements that
they can't get a gcc-2.95.2 working properly or it gives dumb errors or
some other complaint. I offered my spec files and patches for those who
wanted them and present them here now.
I have three compilers co-existing on my development system:
gcc-2.95.2, egcs-1.1.2 and pgcc-2.95.3
where gcc is the key compiler and the other two have been repackaged to
fit in with it. pgcc shares cpp with gcc for example, although a separate
cpp package is built from the pgcc srpm. I can't guarantee any
installation that leaves out the gcc packages. You may also get some
complaints from rpm about the libstdc++ package versions -- ignore them.
I've bundled gcc's libstdc++ into the gcc-c++ rpm to avoid name classes
with the other two systems -- besides all these libraries are local
anyway. The spec file adds symlinks from /lib to the appropriate
libraries so there are no problems finding the libraries.
I used the same src.rpm on three distro's:
SuSE-6.3, Mandrake-6.1 and Red Hat-6.0
The attached tar file contains:
RPM/compilers.list
the list of rpms installed from the three packages
RPM/egcs-1.1.2.tgz
the spec file and Makefile patch for egcs-1.1.2.
This package is based on redhat's egcs-1.1.2-12.src.rpm
just replace their spec file with mine.
RPM/gcc-2.95.2.tgz
all you need to add is the gcc-2.95.2 release tarball.
The spec file probably still mentions a pgcc patch as a
source but it isn't applied so comment that source line
out.
RPM/pgcc-2.95.3.tgz
Just add the gcc release tarball above and the pgcc-2.95.3
patch.
RPM/rpmrc.tail
A set of lines I appended to my /usr/lib/rpm/rpmrc to get
higher optimisation of built binaries. This is based on
the flags used by the Mandrake distribution.
All three compilers build their libaries into their own subdirs rather
than placing them globally into /usr/lib. This avoids conflicts.
Allan. (ARRae)
spec files for gcc, egcs and pgcc