[Fwd: syscall patch]
Jeff Johnston
jjohnstn@redhat.com
Wed Oct 11 08:06:00 GMT 2006
I have checked in this patch. The default compile .c.o rule would have
added $(INCLUDES) and -O2.
-- Jeff J.
Thiemo Seufer wrote:
>>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
>
More information about the Newlib
mailing list