summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/Makefile')
-rw-r--r--libc/sysdeps/linux/powerpc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile
index f9fdcd123..02c4492fe 100644
--- a/libc/sysdeps/linux/powerpc/Makefile
+++ b/libc/sysdeps/linux/powerpc/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,10 +66,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)