Compare commits
10 Commits
137b0c5312
...
5b06c7555c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b06c7555c | ||
|
|
b15e5a0575 | ||
|
|
aab4f097a5 | ||
|
|
0c8a781857 | ||
|
|
99a9de388c | ||
|
|
33a6846bef | ||
|
|
404c4916a4 | ||
|
|
63030f22a6 | ||
|
|
d81d1c8462 | ||
|
|
05c5e425bc |
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
|
||||||
|
|
||||||
Binary file not shown.
BIN
libx86emu-3.5.tar.gz
Normal file
BIN
libx86emu-3.5.tar.gz
Normal file
Binary file not shown.
@ -7,23 +7,23 @@
|
|||||||
LDFLAGS="-fPIC %{__global_ldflags}"
|
LDFLAGS="-fPIC %{__global_ldflags}"
|
||||||
|
|
||||||
Name: libx86emu
|
Name: libx86emu
|
||||||
Version: 3.1
|
Version: 3.5
|
||||||
Release: 1
|
Release: 3
|
||||||
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
|
||||||
BuildRequires: gcc
|
Patch0: 10000-Fix-compilation-errors-caused-by-gcc.patch
|
||||||
BuildRequires: libx86emu
|
BuildRequires: gcc nasm perl
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libx86emu is a small library to emulate x86 instructions.
|
Small x86 emulation library with focus of easy usage and extended execution
|
||||||
The focus here is not a complete emulation (go for qemu for this)
|
logging functions. The library features an API to create emulation objects
|
||||||
but to cover enough for typical firmware blobs.
|
for x86 architecture.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains development files for %{name}.
|
The %{name}-devel package contains development files for %{name}.
|
||||||
@ -34,11 +34,16 @@ The %{name}-devel package contains development files for %{name}.
|
|||||||
%build
|
%build
|
||||||
%make_build %{make_flags} shared
|
%make_build %{make_flags} shared
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install %{make_flags}
|
%make_install %{make_flags}
|
||||||
cp %{_libdir}/libx86emu.so.1* %{buildroot}%{_libdir}/
|
|
||||||
|
%check
|
||||||
|
%ifarch x86_64
|
||||||
|
make -C test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -52,6 +57,20 @@ cp %{_libdir}/libx86emu.so.1* %{buildroot}%{_libdir}/
|
|||||||
%{_libdir}/libx86emu.so
|
%{_libdir}/libx86emu.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 26 2023 zhangpan <zhangpan103@h-partners.com> - 3.5-3
|
||||||
|
- enable make check
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Fri Nov 5 2021 xingxing <xingxing9@huawei.com> - 3.1-2
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:delete low version
|
||||||
|
|
||||||
* Tue Jul 28 2020 zhangqiumiao <zhangqiumiao1@huawei.com> - 3.1-1
|
* Tue Jul 28 2020 zhangqiumiao <zhangqiumiao1@huawei.com> - 3.1-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user