Browse Source

Merge pull request #3447 from martin-frbg/issue3446

Fix potentially wrong HOSTARCH definition in cross-compilation
tags/v0.3.19
Martin Kroeker GitHub 3 years ago
parent
commit
5b7a3c0e1b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      Makefile.system

+ 3
- 4
Makefile.system View File

@@ -9,11 +9,10 @@ ifndef TOPDIR
TOPDIR = .
endif

# If ARCH is not set, we use the host system's architecture for getarch compile options.
ifndef ARCH
# we need to use the host system's architecture for getarch compile options even especially when cross-compiling
HOSTARCH := $(shell uname -m)
else
HOSTARCH = $(ARCH)
ifeq ($(HOSTARCH), amd64)
HOSTARCH=x86_64
endif

HAVE_GAS := $(shell as -v < /dev/null 2>&1 | grep GNU 2>&1 >/dev/null)


Loading…
Cancel
Save