Răsfoiți Sursa

Fix "subst -g,," problem for SAFECFLAGS.

Manuel Novoa III 22 ani în urmă
părinte
comite
17ab889ed1

+ 1 - 1
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)

+ 1 - 1
libc/sysdeps/linux/common/Makefile

@@ -44,7 +44,7 @@ SAFECFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) -fno-built
 # on SH4 addition of -g kills the initfini stuff, removed here for all
 # platforms as I suspect no one want initfini compiled -g :-) - davidm
 #
-SAFECFLAGS := $(subst -g,,$(SAFECFLAGS))
+SAFECFLAGS := $(filter-out -g,$(SAFECFLAGS))
 ifeq ($(strip $(DOPIC)),y)
 SAFECFLAGS+=$(PICFLAG)
 endif

+ 1 - 1
libc/sysdeps/linux/i386/Makefile

@@ -58,7 +58,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)

+ 1 - 1
libc/sysdeps/linux/powerpc/Makefile

@@ -58,7 +58,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)

+ 1 - 1
libc/sysdeps/linux/sh/Makefile

@@ -57,7 +57,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)