Browse Source

ARCH_NATIVE_BIT should in the first place be passed when building utils for host

ARCH_NATIVE_BIT should in the first place be passed when building utils
for host (BUILD_CFLAGS-utils). It could also be passed when building utils
for target (CFLAGS-utils), but this is actually not necessary
as ARCH_NATIVE_BIT and __WORDSIZE are identical in this case.

Fixes 5ec4477584b69fe5f1410649b2eb3a63835fb649 (makes it actually work).

Signed-off-by: Eugene Rudoy <gene@freetz.org>
Eugene Rudoy 8 years ago
parent
commit
0c91741de0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/Makefile.in

+ 1 - 1
utils/Makefile.in

@@ -14,7 +14,6 @@ CFLAGS-utils := \
     -I$(top_srcdir)ldso/include \
     -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
     -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \
-    -DARCH_NATIVE_BIT=$(ARCH_NATIVE_BIT) \
     -I$(top_srcdir)/$(KERNEL_HEADERS) \
     -DNOT_IN_libc \
     -B$(top_builddir)lib \
@@ -54,6 +53,7 @@ UTILS_CONFIG_FLAGS-$(LDSO_STANDALONE_SUPPORT) += -D__LDSO_STANDALONE_SUPPORT__
 BUILD_CFLAGS-utils := \
     -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
     -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \
+    -DARCH_NATIVE_BIT=$(ARCH_NATIVE_BIT) \
     $(UTILS_CONFIG_FLAGS-y)
 BUILD_CFLAGS-ldconfig.host := \
 				-DBUILDING_LINKAGE \