!24 修复源代码内指定 gcc 编译器导致编译错误
From: @backjace Reviewed-by: @leeffo Signed-off-by: @leeffo
This commit is contained in:
commit
aab4f097a5
26
10000-Fix-compilation-errors-caused-by-gcc.patch
Normal file
26
10000-Fix-compilation-errors-caused-by-gcc.patch
Normal 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
|
||||||
|
|
||||||
@ -8,11 +8,12 @@
|
|||||||
|
|
||||||
Name: libx86emu
|
Name: libx86emu
|
||||||
Version: 3.5
|
Version: 3.5
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: x86 emulation library
|
Summary: x86 emulation library
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/wfeldt/libx86emu
|
URL: https://github.com/wfeldt/libx86emu
|
||||||
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: 10000-Fix-compilation-errors-caused-by-gcc.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -51,6 +52,9 @@ The %{name}-devel package contains development files for %{name}.
|
|||||||
%{_libdir}/libx86emu.so
|
%{_libdir}/libx86emu.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Mar 25 2022 liukuo <liukuo@kylinos.cn> - 3.5-1
|
||||||
- Update version to v3.5
|
- Update version to v3.5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user