From 2f01dd180f8a82b833efd7ec01fa90196d2aee99 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 8 Nov 2003 21:21:44 +0000 Subject: Darn. Fix compilation for soft-float, which I inadvertantly broke a couple of days ago. :-( --- libc/sysdeps/linux/sh/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/sh') diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index 63f925b01..3999b51f6 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -36,6 +36,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) +ifeq ($(strip $(UCLIBC_PROFILING)),y) +SAFECFLAGS := $(filter-out -g,$(CFLAGS)) +endif +ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y) +SAFECFLAGS += $(call check_gcc,-msoft-float,) +endif + all: $(OBJS) $(LIBC) @@ -58,10 +65,6 @@ $(COBJS): %.o : %.c $(STRIPTOOL) -x -R .note -R .comment $*.o ifeq ($(strip $(UCLIBC_PROFILING)),y) -SAFECFLAGS := $(filter-out -g,$(CFLAGS)) -ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y) -SAFECFLAGS += $(call check_gcc,-msoft-float,) -endif gmon-start.S: ../common/gmon-start.c $(CC) $(SAFECFLAGS) -c $< -S -o $*.S gcrt1.o: $(CRT0_DEPS) -- cgit v1.2.3