Hi,
I managed to compile gcc 2.95.1 on mipsel-linux (Cobalt Raq2). I
needed to apply the appended two patches. A complete bootstrap with
static libraries was fine, now I'm trying the shared libs.
What's the general status of gcc 2.95.1 on MIPS? Do I have to apply
other patches?
Btw. I'm one of the glibc developers and I'm going to port the
current glibc to mips.
Andreas
1999-08-21 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
thread support.
1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* linux.h (LIB_SPEC): Added.
--- gcc/config/mips/linux.h.~1~ Thu Apr 15 08:09:22 1999
+++ gcc/config/mips/linux.h Fri Aug 20 07:28:50 1999
@@ -55,6 +55,13 @@
#undef MIPS_DEFAULT_GVALUE
#define MIPS_DEFAULT_GVALUE 0
+#undef LIB_SPEC
+/* Taken from sprac/linux.h. */
+#define LIB_SPEC \
+ "%{shared: -lc} \
+ %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+ %{profile:-lc_p} %{!profile: -lc}}"
+
/* Borrowed from sparc/linux.h */
#undef LINK_SPEC
#define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \
--- gcc/configure.in.orig Sat Aug 21 07:00:57 1999
+++ gcc/configure.in Sat Aug 21 07:04:30 1999
@@ -2363,9 +2363,12 @@
mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
*) tm_file="mips/elf.h mips/linux.h" ;;
esac
- extra_parts="crtbegin.o crtend.o"
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
gas=yes
+ if test x$enable_threads = xyes; then
+ thread_file='posix'
+ fi
;;
mips*el-*-openbsd*) # mips little endian
target_cpu_default="MASK_GAS|MASK_ABICALLS"
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de
|