Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5b06c7555c
!25 enable make check
From: @zppzhangpan 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-09-26 09:18:46 +00:00
zppzhangpan
b15e5a0575 enable make check 2023-09-26 14:31:30 +08:00
openeuler-ci-bot
aab4f097a5
!24 修复源代码内指定 gcc 编译器导致编译错误
From: @backjace 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-04-23 06:52:48 +00:00
sjxur
0c8a781857 Fix:compilation errors caused by specifying the gcc compiler in source code 2023-04-21 11:26:15 +08:00
openeuler-ci-bot
99a9de388c
!21 【轻量级 PR】:fix bogus date
From: @zhouwenpei 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-12-15 09:03:10 +00:00
zhouwenpei
33a6846bef
fix bogus date
Signed-off-by: zhouwenpei <zhouwenpei050@chinasoftinc.com>
2022-12-15 08:48:20 +00:00
openeuler-ci-bot
404c4916a4
!13 Update version to 3.5
From: @lauk001 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
2022-03-28 08:02:45 +00:00
lauk
63030f22a6 Update version to 3.5 2022-03-25 15:57:17 +08:00
openeuler-ci-bot
d81d1c8462 !6 删除多余低版本的.so
From: @xing_xing1992
Reviewed-by: @shirely16,@yanan-rock
Signed-off-by: @yanan-rock
2021-11-06 06:50:03 +00:00
xingxing
05c5e425bc delete low version 2021-11-05 16:31:25 +08:00
4 changed files with 55 additions and 10 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

Binary file not shown.

BIN
libx86emu-3.5.tar.gz Normal file

Binary file not shown.

View File

@ -7,23 +7,23 @@
LDFLAGS="-fPIC %{__global_ldflags}"
Name: libx86emu
Version: 3.1
Release: 1
Version: 3.5
Release: 3
Summary: x86 emulation library
License: BSD
URL: https://github.com/wfeldt/libx86emu
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: libx86emu
Patch0: 10000-Fix-compilation-errors-caused-by-gcc.patch
BuildRequires: gcc nasm perl
%description
libx86emu is a small library to emulate x86 instructions.
The focus here is not a complete emulation (go for qemu for this)
but to cover enough for typical firmware blobs.
Small x86 emulation library with focus of easy usage and extended execution
logging functions. The library features an API to create emulation objects
for x86 architecture.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains development files for %{name}.
@ -34,11 +34,16 @@ The %{name}-devel package contains development files for %{name}.
%build
%make_build %{make_flags} shared
%ldconfig_scriptlets
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
%make_install %{make_flags}
cp %{_libdir}/libx86emu.so.1* %{buildroot}%{_libdir}/
%check
%ifarch x86_64
make -C test
%endif
%files
%defattr(-,root,root)
@ -52,6 +57,20 @@ cp %{_libdir}/libx86emu.so.1* %{buildroot}%{_libdir}/
%{_libdir}/libx86emu.so
%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
- Type:enhancement
- ID:NA