|
|
d5c737 |
From ec3079ee6252808ff6961a165306cb1ae427d04f Mon Sep 17 00:00:00 2001
|
|
|
d5c737 |
From: Peter Jones <pjones@redhat.com>
|
|
|
d5c737 |
Date: Mon, 13 Jan 2020 15:58:47 -0500
|
|
|
d5c737 |
Subject: [PATCH 62/63] Don't use -march=native on ia64.
|
|
|
d5c737 |
|
|
|
d5c737 |
I don't understand why this architecture hasn't been fully pushed into
|
|
|
d5c737 |
the sea*, but somehow there are bug reports anyway. In this case,
|
|
|
d5c737 |
because the gcc port is inadequately maintained.
|
|
|
d5c737 |
|
|
|
d5c737 |
(* don't pollute the planet this way, destroy the device responsibly.)
|
|
|
d5c737 |
|
|
|
d5c737 |
Resolves github issue #144
|
|
|
d5c737 |
|
|
|
d5c737 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
d5c737 |
---
|
|
|
d5c737 |
src/include/defaults.mk | 8 +++++++-
|
|
|
d5c737 |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
d5c737 |
|
|
|
d5c737 |
diff --git a/src/include/defaults.mk b/src/include/defaults.mk
|
|
|
d5c737 |
index af6a41a9824..8a784d00be3 100644
|
|
|
d5c737 |
--- a/src/include/defaults.mk
|
|
|
d5c737 |
+++ b/src/include/defaults.mk
|
|
|
d5c737 |
@@ -56,10 +56,16 @@ override _CCLDFLAGS := $(CCLDFLAGS)
|
|
|
d5c737 |
override CCLDFLAGS = $(CFLAGS) -L. $(_CCLDFLAGS) \
|
|
|
d5c737 |
$(call add-prefix,-Wl,$(LDFLAGS)) \
|
|
|
d5c737 |
$(call pkg-config-ccldflags)
|
|
|
d5c737 |
+HOST_ARCH=$(shell uname -m)
|
|
|
d5c737 |
+ifneq ($(HOST_ARCH),ia64)
|
|
|
d5c737 |
+ HOST_MARCH=-march=native
|
|
|
d5c737 |
+else
|
|
|
d5c737 |
+ HOST_MARCH=
|
|
|
d5c737 |
+endif
|
|
|
d5c737 |
HOST_CPPFLAGS ?= $(CPPFLAGS)
|
|
|
d5c737 |
override _HOST_CPPFLAGS := $(HOST_CPPFLAGS)
|
|
|
d5c737 |
override HOST_CPPFLAGS = $(_HOST_CPPFLAGS) \
|
|
|
d5c737 |
- -DEFIVAR_BUILD_ENVIRONMENT -march=native
|
|
|
d5c737 |
+ -DEFIVAR_BUILD_ENVIRONMENT $(HOST_MARCH)
|
|
|
d5c737 |
HOST_CFLAGS ?= $(CFLAGS)
|
|
|
d5c737 |
override _HOST_CFLAGS := $(HOST_CFLAGS)
|
|
|
d5c737 |
override HOST_CFLAGS = $(_HOST_CFLAGS)
|
|
|
d5c737 |
--
|
|
|
d5c737 |
2.26.2
|
|
|
d5c737 |
|