Projects
Eulaceura:Factory
efivar
_service:obs_scm:0001-Fix-the-march-issue-for-r...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Fix-the-march-issue-for-riscv64-and-sw_64.patch of Package efivar
From ee3a1a046da9fd3f14965876340886167121057b Mon Sep 17 00:00:00 2001 From: Wei Fu <wefu@redhat.com> #From: panchenbo <panchenbo@kylinsec.com.cn> Date: Wed, 26 Apr 2023 17:47:25 +0800 Subject: [PATCH] Fix the -march issue for riscv64 sw_64 There is an issue on riscv64 system when compiling it natively: gcc: error: '-march=native': ISA string must begin with rv32 or rv64 This patch set HOST_MARCH= like ia64 to resolve the issue. Signed-off-by: Wei Fu <wefu@redhat.com> (cherry picked from commit aab4e9b10ac9e98588a1b19771cf6f4c8c0a3096) --- src/include/defaults.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/include/defaults.mk b/src/include/defaults.mk index 632b155..a25458f 100644 --- a/src/include/defaults.mk +++ b/src/include/defaults.mk @@ -72,10 +72,14 @@ override SOFLAGS = $(_SOFLAGS) \ $(call family,SOFLAGS) HOST_ARCH=$(shell uname -m) -ifneq ($(HOST_ARCH),ia64) - HOST_MARCH=-march=native -else +ifeq ($(HOST_ARCH),ia64) + HOST_MARCH= +else ifeq ($(HOST_ARCH),riscv64) HOST_MARCH= +else ifeq ($(HOST_ARCH),sw_64) + HOST_MARCH= +else + HOST_MARCH=-march=native endif HOST_CPPFLAGS ?= $(CPPFLAGS) override _HOST_CPPFLAGS := $(HOST_CPPFLAGS) -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2