0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 3452721eafae90749f4af63264c412f398460b15 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 20 Jan 2019 21:07:11 +0100
  4. Subject: [PATCH] Make.defaults: don't override ARCH when cross-compiling
  5. Don't override the user-provided ARCH when cross-compiling otherwise
  6. ARCH won't be correct for armv5, aarch64 and x86_64
  7. Fixes:
  8. - http://autobuild.buildroot.org/results/2dfc0e10da25a8382a43557420d7dc3444c02dbb
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. ---
  11. Make.defaults | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/Make.defaults b/Make.defaults
  14. index ba743f1..a0e5632 100755
  15. --- a/Make.defaults
  16. +++ b/Make.defaults
  17. @@ -67,7 +67,7 @@ ARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[345678
  18. # Get ARCH from the compiler if cross compiling
  19. ifneq ($(CROSS_COMPILE),)
  20. - override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
  21. + ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
  22. endif
  23. # FreeBSD (and possibly others) reports amd64 instead of x86_64
  24. --
  25. 2.14.1