Fix:compilation errors caused by specifying the gcc compiler in source code

This commit is contained in:
sjxur 2023-04-21 11:26:15 +08:00
parent 99a9de388c
commit 0c8a781857
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 85f60235499f9d248ce689881e7ba9181152631a Mon Sep 17 00:00:00 2001
From: sjxur <sjxur@isoftstone.com>
Date: Fri, 21 Apr 2023 11:09:13 +0800
Subject: [PATCH] Fix compilation errors caused by specifying the gcc compiler
in source code
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 93c412b..9cdea44 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ PREFIX := libx86emu-$(VERSION)
MAJOR_VERSION := $(shell $(GIT2LOG) --version VERSION ; cut -d . -f 1 VERSION)
-CC = gcc
+CC ?= gcc
CFLAGS = -g -O2 -fPIC -fvisibility=hidden -fomit-frame-pointer -Wall
LDFLAGS =
--
2.33.0

View File

@ -8,11 +8,12 @@
Name: libx86emu
Version: 3.5
Release: 1
Release: 2
Summary: x86 emulation library
License: BSD
URL: https://github.com/wfeldt/libx86emu
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 10000-Fix-compilation-errors-caused-by-gcc.patch
BuildRequires: gcc
%description
@ -51,6 +52,9 @@ The %{name}-devel package contains development files for %{name}.
%{_libdir}/libx86emu.so
%changelog
* Fri Apr 21 2023 sjxur <sjxur@isoftstone.com> - 3.5-2
- Fix-compilation-errors-caused-by-gcc
* Fri Mar 25 2022 liukuo <liukuo@kylinos.cn> - 3.5-1
- Update version to v3.5