Преглед на файлове

properly deal with soft-float when profiling as well

Eric Andersen преди 20 години
родител
ревизия
9f9350ab90
променени са 4 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 3 0
      libc/sysdeps/linux/arm/Makefile
  2. 3 0
      libc/sysdeps/linux/i386/Makefile
  3. 3 0
      libc/sysdeps/linux/powerpc/Makefile
  4. 3 0
      libc/sysdeps/linux/sh/Makefile

+ 3 - 0
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)

+ 3 - 0
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)

+ 3 - 0
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)

+ 3 - 0
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)