diff --git a/10000-Fix-compilation-errors-caused-by-gcc.patch b/10000-Fix-compilation-errors-caused-by-gcc.patch new file mode 100644 index 0000000..7c35950 --- /dev/null +++ b/10000-Fix-compilation-errors-caused-by-gcc.patch @@ -0,0 +1,26 @@ +From 85f60235499f9d248ce689881e7ba9181152631a Mon Sep 17 00:00:00 2001 +From: sjxur +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 + diff --git a/libx86emu.spec b/libx86emu.spec index 42a8349..d98f70a 100644 --- a/libx86emu.spec +++ b/libx86emu.spec @@ -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 - 3.5-2 +- Fix-compilation-errors-caused-by-gcc + * Fri Mar 25 2022 liukuo - 3.5-1 - Update version to v3.5