From 86553e6605853bb982cd0cd578134c42e26ee407 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 28 Oct 2005 01:16:04 +0000 Subject: Remove unused CFLAGS_NOPIC, use ?= some of check_gcc won't rerun --- Rules.mak | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Rules.mak b/Rules.mak index 581d7a495..8b2417631 100644 --- a/Rules.mak +++ b/Rules.mak @@ -279,11 +279,11 @@ ifeq ($(strip $(TARGET_ARCH)),arm) endif endif -SSP_DISABLE_FLAGS:=$(call check_gcc,-fno-stack-protector,) +SSP_DISABLE_FLAGS?=$(call check_gcc,-fno-stack-protector,) ifeq ($(UCLIBC_BUILD_SSP),y) SSP_CFLAGS:=$(call check_gcc,-fno-stack-protector-all,) SSP_CFLAGS+=$(call check_gcc,-fstack-protector,) -SSP_ALL_CFLAGS:=$(call check_gcc,-fstack-protector-all,) +SSP_ALL_CFLAGS?=$(call check_gcc,-fstack-protector-all,) else SSP_CFLAGS:=$(SSP_DISABLE_FLAGS) endif @@ -310,7 +310,6 @@ endif # gcc-4.1(200506xx) supports it, but needs the --combine flag, else libs are useless GCC_VER?=$(shell $(CC) -dumpversion | cut -d . -f 1,2) ifeq ($(GCC_VER),3.3) -# not supported DOMULTI=n else CFLAGS+=$(call check_gcc,--combine,) @@ -325,14 +324,14 @@ endif PTDIR := $(TOPDIR)libpthread/$(PTNAME) # set up system dependencies include dirs (NOTE: order matters!) ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) -PTINC := -I$(PTDIR)/compat \ - -I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \ - -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \ - -I$(PTDIR)/sysdeps/unix/sysv/linux \ - -I$(PTDIR)/sysdeps/pthread \ - -I$(PTDIR)/sysdeps/pthread/bits \ - -I$(PTDIR)/sysdeps/generic \ - -include $(PTDIR)/compat/libc-symbols.h +PTINC:= -I$(PTDIR)/compat \ + -I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \ + -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \ + -I$(PTDIR)/sysdeps/unix/sysv/linux \ + -I$(PTDIR)/sysdeps/pthread \ + -I$(PTDIR)/sysdeps/pthread/bits \ + -I$(PTDIR)/sysdeps/generic \ + -include $(PTDIR)/compat/libc-symbols.h # # Test for TLS if NPTL support was selected. # @@ -351,8 +350,8 @@ gcc_tls_test_fail: @exit 1; endif else -PTINC := -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \ - -I$(PTDIR)/sysdeps/pthread +PTINC:= -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \ + -I$(PTDIR)/sysdeps/pthread endif CFLAGS+=$(PTINC) endif @@ -370,12 +369,11 @@ endif CFLAGS+=-isystem $(shell $(CC) -print-file-name=include) ifneq ($(DOASSERTS),y) - CFLAGS += -DNDEBUG +CFLAGS+=-DNDEBUG endif -CFLAGS_NOPIC:=$(CFLAGS) ifeq ($(DOPIC),y) - CFLAGS += $(PICFLAG) +CFLAGS+=$(PICFLAG) endif # Keep the check_as from being needlessly executed -- cgit v1.2.3