Jelajahi Sumber

Strip off unwanted quotes from ARCH_CFLAGS. Attempt to
enforce consistent sort order, 'gcc -print-search-dirs'
behavior, etc by forcing the build into the C locale.
-Erik

Eric Andersen 22 tahun lalu
induk
melakukan
8fb868cee4
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      Rules.mak

+ 3 - 3
Rules.mak

@@ -54,8 +54,8 @@ MAJOR_VERSION:=0
 MINOR_VERSION:=9
 SUBLEVEL:=16
 VERSION:=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL)
-# Ensure consistent filename sort order
-LC_COLLATE:= C
+# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc. 
+LC_ALL:= C
 export MAJOR_VERSION MINOR_VERSION SUBLEVEL VERSION LC_COLLATE
 
 SHARED_FULLNAME:=libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
@@ -169,7 +169,7 @@ endif
 WARNINGS+=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
 # Some nice CFLAGS to work with
 CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
-	-D_LIBC $(CPU_CFLAGS-y) $(ARCH_CFLAGS) -I$(TOPDIR)include -I.
+	-D_LIBC $(CPU_CFLAGS-y) $(subst ",, $(strip $(ARCH_CFLAGS))) -I$(TOPDIR)include -I.
 
 ifeq ($(DODEBUG),y)
     CFLAGS += -g