This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc 2.95.2 host sparcv9-sun-solaris2.7 patch to allow .so's to compile
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: gcc 2.95.2 host sparcv9-sun-solaris2.7 patch to allow .so's to compile
- From: "Marciniszyn, Mike (WingspanTech)" <mmarci at Wingspantech dot com>
- Date: Wed, 22 Dec 1999 13:35:44 -0500
The attached patch allows for the compilation of sparcv9 shared objects in
gcc 2.95.2.
The out of box 2.95.2 doesn't use -fPIC in compiling for this target. The
mh-sparcpic and mt-sparcpic were copied. :-)
If this is dedundant to work being done elsewhere, please let me know
Mike
The patch in text form:
diff -rcN gcc-2.95.2-orig/config/mh-sparcv9pic
gcc-2.95.2/config/mh-sparcv9pic
*** gcc-2.95.2-orig/config/mh-sparcv9pic Wed Dec 31 19:00:00 1969
--- gcc-2.95.2/config/mh-sparcv9pic Tue Dec 21 13:31:48 1999
***************
*** 0 ****
--- 1 ----
+ PICFLAG=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * )
echo -fPIC ;; esac`
diff -rcN gcc-2.95.2-orig/config/mt-sparcv9pic
gcc-2.95.2/config/mt-sparcv9pic
*** gcc-2.95.2-orig/config/mt-sparcv9pic Wed Dec 31 19:00:00 1969
--- gcc-2.95.2/config/mt-sparcv9pic Tue Dec 21 13:31:00 1999
***************
*** 0 ****
--- 1 ----
+ PICFLAG_FOR_TARGET=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo
-fpic ;; * ) echo -fPIC ;; esac`
<<sparcv9diffs.gz>>
sparcv9diffs.gz