efivar: fix build for correct cpu

the makefile add --march=native which optimize the code to the
cpu of the buildhost which can result in unsupported instructions on
other machines.
This commit is contained in:
Arne Fitzenreiter
2023-02-28 19:45:15 +01:00
committed by Peter Müller
parent 1b6047b3ee
commit 66a5ad1e88
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
diff -Naur efivar-38.org/src/include/defaults.mk efivar-38/src/include/defaults.mk
--- efivar-38.org/src/include/defaults.mk 2022-01-14 20:29:35.000000000 +0100
+++ efivar-38/src/include/defaults.mk 2023-02-23 19:38:12.493736490 +0100
@@ -71,12 +71,8 @@
-Wl,--version-script=$(MAP) \
$(call family,SOFLAGS)
-HOST_ARCH=$(shell uname -m)
-ifneq ($(HOST_ARCH),ia64)
- HOST_MARCH=-march=native
-else
- HOST_MARCH=
-endif
+HOST_MARCH=
+
HOST_CPPFLAGS ?= $(CPPFLAGS)
override _HOST_CPPFLAGS := $(HOST_CPPFLAGS)
override HOST_CPPFLAGS = $(_HOST_CPPFLAGS) \