projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7ca63
)
Fix potentially wrong HOSTARCH definition in cross-compilation
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Wed, 10 Nov 2021 21:27:14 +0000
(22:27 +0100)
committer
GitHub
<noreply@github.com>
Wed, 10 Nov 2021 21:27:14 +0000
(22:27 +0100)
Makefile.system
patch
|
blob
|
history
diff --git
a/Makefile.system
b/Makefile.system
index a97cca70c591fe0a189920911aab4beba09ddacb..16e8fcbd6b534ac24d78eec4ad01cceb2dddfa6b 100644
(file)
--- a/
Makefile.system
+++ b/
Makefile.system
@@
-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)