From 498d8099a6e4163798d327c9cc727fa0282bd716 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 22 Nov 2003 21:22:28 +0000 Subject: Remove SAFECFLAGS. It was a workaround for failures in old awk script used to generate the crti.S and crtn.S files. Since we don't use that anymore, keeping the workaround makes no sense. Furthermore, in most cases, SAFECFLAGS was not picking up all the needed flags, causing crti.o and crtn.o to not be built PIC. Which is very bad. Removing SAFECFLAGS and using CFLAGS fixes that as well. --- libc/sysdeps/linux/powerpc/Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libc/sysdeps/linux/powerpc/Makefile') diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile index 02c4492fe..90158b8fe 100644 --- a/libc/sysdeps/linux/powerpc/Makefile +++ b/libc/sysdeps/linux/powerpc/Makefile @@ -37,14 +37,6 @@ 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) $(LIBC): ar-target @@ -67,21 +59,21 @@ $(COBJS): %.o : %.c ifeq ($(strip $(UCLIBC_PROFILING)),y) gmon-start.S: ../common/gmon-start.c - $(CC) $(SAFECFLAGS) -c $< -S -o $*.S + $(CC) $(CFLAGS) -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 + $(CC) $(CFLAGS) -c crti.S -o crti.o $(TOPDIR)lib/crti.o: crti.o $(INSTALL) -d $(TOPDIR)lib/ cp crti.o $(TOPDIR)lib/ crtn.o: crtn.S - $(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o + $(CC) $(CFLAGS) -c crtn.S -o crtn.o $(TOPDIR)lib/crtn.o: crtn.o $(INSTALL) -d $(TOPDIR)lib/ -- cgit v1.2.3