This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Libgloss: fix for building mips16.
- From: David Ung <davidu at mips dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 14 Oct 2005 16:08:19 +0100
- Subject: [patch] Libgloss: fix for building mips16.
This patch fixes the problem of trying to build libgloss for mips16. As
cygmon.c cannot be compiled with mips16 since it uses "syscall".
ok?
David.
* mips/Makefile.in: Add rule for cygmon.o and pass the -mno-mips16
option since it uses the syscall instruction.
Index: libgloss/mips/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/mips/Makefile.in,v
retrieving revision 1.6
diff -c -p -b -r1.6 Makefile.in
*** libgloss/mips/Makefile.in 28 Jun 2004 22:42:20 -0000 1.6
--- libgloss/mips/Makefile.in 13 Oct 2005 16:47:14 -0000
*************** cfe_mem.o: ${srcdir}/cfe_mem.c ${srcdir}
*** 243,248 ****
--- 243,251 ----
cma101.o: ${srcdir}/cma101.c
$(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
+ # cygmon can not be compiled mips16 since it uses the syscall instruction
+ cygmon.o: ${srcdir}/cygmon.c
+ $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cygmon.c
syscalls.o: ${srcdir}/syscalls.c