summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arm/Makefile')
-rw-r--r--libc/sysdeps/linux/arm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile
index 5fd0bbe85..beed16b23 100644
--- a/libc/sysdeps/linux/arm/Makefile
+++ b/libc/sysdeps/linux/arm/Makefile
@@ -55,7 +55,7 @@ $(COBJS): %.o : %.c
$(STRIPTOOL) -x -R .note -R .comment $*.o
ifeq ($(strip $(UCLIBC_PROFILING)),y)
-SAFECFLAGS := $(subst -g,,$(CFLAGS))
+SAFECFLAGS := $(filter-out -g,$(CFLAGS))
gmon-start.S: ../common/gmon-start.c
$(CC) $(SAFECFLAGS) -c $< -S -o $*.S
gcrt1.o: $(CRT0_DEPS)