From 9f9350ab90cd4f2f27655866871b11b23f14ac9e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 25 Oct 2003 06:35:29 +0000 Subject: properly deal with soft-float when profiling as well --- libc/sysdeps/linux/arm/Makefile | 3 +++ libc/sysdeps/linux/i386/Makefile | 3 +++ libc/sysdeps/linux/powerpc/Makefile | 3 +++ libc/sysdeps/linux/sh/Makefile | 3 +++ 4 files changed, 12 insertions(+) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile index a31f6a704..95302c487 100644 --- a/libc/sysdeps/linux/arm/Makefile +++ b/libc/sysdeps/linux/arm/Makefile @@ -56,6 +56,9 @@ $(COBJS): %.o : %.c 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) diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile index 90cad8e6e..1bf634170 100644 --- a/libc/sysdeps/linux/i386/Makefile +++ b/libc/sysdeps/linux/i386/Makefile @@ -59,6 +59,9 @@ $(COBJS): %.o : %.c 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) diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile index 39432a0ef..862444781 100644 --- a/libc/sysdeps/linux/powerpc/Makefile +++ b/libc/sysdeps/linux/powerpc/Makefile @@ -59,6 +59,9 @@ $(COBJS): %.o : %.c 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) diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index d730a4b0f..030b06a58 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -58,6 +58,9 @@ $(COBJS): %.o : %.c 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