From fc90506367f5c90d79523072850c1bc52282600f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 2 Jan 2002 23:31:27 +0000 Subject: Fixes from M. R. Brown to fixup some little compile nits with the SH architecture, and support SH4, --- libc/sysdeps/linux/sh/Makefile | 8 ++++---- libc/sysdeps/linux/sh/_mmap.c | 1 + libc/sysdeps/linux/sh/pipe.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index 4f76b49a5..70f3ccacd 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -23,9 +23,9 @@ TOPDIR=../../../../ include $(TOPDIR)Rules.mak -ASFLAGS=$(CFLAGS) -CFLAGS+= -I../ -D__ASSEMBLER__ -DASM_GLOBAL_DIRECTIVE=.globl +CFLAGS+= -I../ +SFLAGS= $(CFLAGS) -D__ASSEMBLER__ -DASM_GLOBAL_DIRECTIVE=.globl TARGET_MACHINE_TYPE=$(shell $(CC) -dumpmachine) @@ -50,11 +50,11 @@ ar-target: $(OBJS) $(CRT0_OBJ) cp $(CRT0_OBJ) $(TOPDIR)libc/$(CRT0_OBJ) $(CRT0_OBJ): %.o : %.S - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(SFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o $(SOBJS): %.o : %.S - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(SFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o $(COBJS): %.o : %.c diff --git a/libc/sysdeps/linux/sh/_mmap.c b/libc/sysdeps/linux/sh/_mmap.c index 70155b028..11b452b43 100644 --- a/libc/sysdeps/linux/sh/_mmap.c +++ b/libc/sysdeps/linux/sh/_mmap.c @@ -20,6 +20,7 @@ */ #include +#include #include #include diff --git a/libc/sysdeps/linux/sh/pipe.c b/libc/sysdeps/linux/sh/pipe.c index 1fb399afc..b07f42d31 100644 --- a/libc/sysdeps/linux/sh/pipe.c +++ b/libc/sysdeps/linux/sh/pipe.c @@ -1,6 +1,7 @@ /* Copyright (C) 2001 Lineo, */ +#include #include #include -- cgit v1.2.3