summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-08 05:12:33 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-08 05:12:33 +0000
commit881e6dca50f78eb006a0ac561992812837642907 (patch)
tree19a7b77f8414194d0c7402f6a8b93f563461eee1
parent67f9c100f48f4e3388996dfef8b870427ace28ab (diff)
Add CPU_CFLAGS-y into LIBGCC_CFLAGS so multilibs gcc will behave
itself. Revery the "=" to ":=" change, so people like Miles can set stuff in their .config
-rw-r--r--Rules.mak16
1 files changed, 8 insertions, 8 deletions
diff --git a/Rules.mak b/Rules.mak
index 0e3e88b71..db1f15441 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -35,15 +35,15 @@
# will build uClibc for 'mipsel'.
CROSS=
-CC:= $(CROSS)gcc
-AR:= $(CROSS)ar
-LD:= $(CROSS)ld
-NM:= $(CROSS)nm
-STRIPTOOL:= $(CROSS)strip
+CC= $(CROSS)gcc
+AR= $(CROSS)ar
+LD= $(CROSS)ld
+NM= $(CROSS)nm
+STRIPTOOL= $(CROSS)strip
# Select the compiler needed to build binaries for your development system
-NATIVE_CC:=gcc
-NATIVE_CFLAGS:=-O2 -Wall
+NATIVE_CC=gcc
+NATIVE_CFLAGS=-O2 -Wall
#--------------------------------------------------------
@@ -192,7 +192,7 @@ ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
CFLAGS += $(call check_gcc,-msoft-float,)
endif
-LIBGCC_CFLAGS ?= $(CFLAGS)
+LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y)
LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)
LIBGCC_DIR:=$(dir $(LIBGCC))