diff options
Diffstat (limited to 'libc/sysdeps/linux/i386/Makefile')
-rw-r--r-- | libc/sysdeps/linux/i386/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile index 02918f8ae..8ca4f3c6c 100644 --- a/libc/sysdeps/linux/i386/Makefile +++ b/libc/sysdeps/linux/i386/Makefile @@ -37,6 +37,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(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) @@ -59,16 +66,11 @@ $(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) endif - ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) crti.o: crti.S $(CC) $(SAFECFLAGS) -c crti.S -o crti.o |