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

gcc 2.95.2 host sparcv9-sun-solaris2.7 patch to allow .so's to compile


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


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