This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [Fwd: syscall patch]
- From: Thiemo Seufer <ths at mips dot com>
- To: Eric Christopher <echristo at apple dot com>
- Cc: David Ung <davidu at mips dot com>, newlib at sources dot redhat dot com
- Date: Mon, 9 Oct 2006 14:33:03 +0100
- Subject: Re: [Fwd: syscall patch]
- References: <452A3264.8070309@mips.com>
> From: Eric Christopher <echristo@apple.com>
>
> This patch:
>
> 2006-08-21 David Ung <davidu@mips.com>
>
> * mips/Makefile.in: Add rule for cygmon.o and pass the -mno- mips16
> option since it uses the syscall instruction.
>
> broke building on targets that don't happen to have a syscall.h in
> the default locations for the compiler to look into.
>
> It can't find the syscall.h in the directory above.
I hope the appended patch works for you.
Thiemo
2006-10-09 Thiemo Seufer <ths@mips.com>
* mips/Makefile.in: Add INCLUDES to local compile rules.
Index: libgloss/mips/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/mips/Makefile.in,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile.in
--- libgloss/mips/Makefile.in 21 Aug 2006 22:24:42 -0000 1.7
+++ libgloss/mips/Makefile.in 9 Oct 2006 13:26:28 -0000
@@ -241,11 +241,11 @@ cfe_mem.o: ${srcdir}/cfe_mem.c ${srcdir}
# it will have to be built, then this rule can be scrapped, allowing
# the implicit rule to run.
cma101.o: ${srcdir}/cma101.c
- $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
+ $(CC) -c $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
# cygmon can not be compiled as mips16 since it uses the syscall instruction
cygmon.o: ${srcdir}/cygmon.c
- $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cygmon.c
+ $(CC) -c $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) $(CFLAGS) -mno-mips16 ${srcdir}/cygmon.c
syscalls.o: ${srcdir}/syscalls.c