Browse Source

ASFLAGS does not need to include CFLAGS as well, compile.S does it already

Peter S. Mazinger 18 years ago
parent
commit
8585cd4da4
2 changed files with 2 additions and 3 deletions
  1. 1 1
      Makerules
  2. 1 2
      Rules.mak

+ 1 - 1
Makerules

@@ -37,7 +37,7 @@ CFLAGS-.oS+=$(PICFLAG) -DSHARED
 #ifeq ($(HAVE_ELF),y)
 CRT=crt1
 #else
-#CRT=crt0.o
+#CRT=crt0
 #endif
 
 ifeq ($(HAVE_SHARED),y)

+ 1 - 2
Rules.mak

@@ -386,7 +386,6 @@ CFLAGS+=-DNDEBUG
 endif
 
 # Keep the check_as from being needlessly executed
-ASFLAGS = $(CFLAGS)
 ifndef ASFLAGS_NOEXEC
 ifeq ($(UCLIBC_BUILD_NOEXECSTACK),y)
 export ASFLAGS_NOEXEC := $(call check_as,--noexecstack)
@@ -394,7 +393,7 @@ else
 export ASFLAGS_NOEXEC :=
 endif
 endif
-ASFLAGS += $(ASFLAGS_NOEXEC)
+ASFLAGS = $(ASFLAGS_NOEXEC)
 
 LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y)
 LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)