!5 Fix build error on X86
From: @wang_yue111 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
d6df1b00a4
25
Fix-build-errot-on-x86_64.patch
Normal file
25
Fix-build-errot-on-x86_64.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From f92e690190b51eb6bada384174887501f4c3f43f Mon Sep 17 00:00:00 2001
|
||||||
|
From: wang_yue111 <648774160@qq.com>
|
||||||
|
Date: Sat, 24 Jul 2021 10:21:03 +0800
|
||||||
|
Subject: [PATCH] fix build error on X86
|
||||||
|
|
||||||
|
---
|
||||||
|
cmake/build_wrapper.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/cmake/build_wrapper.sh b/cmake/build_wrapper.sh
|
||||||
|
index 1962813..895610c 100755
|
||||||
|
--- a/cmake/build_wrapper.sh
|
||||||
|
+++ b/cmake/build_wrapper.sh
|
||||||
|
@@ -17,7 +17,7 @@ KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX)
|
||||||
|
LIBC_SO=$("$@" --print-file-name=libc.so.6)
|
||||||
|
cp ${KEEPSYMS_IN} ${KEEPSYMS}
|
||||||
|
# get all symbols from libc and turn them into patterns
|
||||||
|
-nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ ]*\).*/^\1$/' >> ${KEEPSYMS}
|
||||||
|
+nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ @]*\).*/^\1$/' >> ${KEEPSYMS}
|
||||||
|
# build the object
|
||||||
|
"$@"
|
||||||
|
# rename the symbols in the object
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: hyperscan
|
Name: hyperscan
|
||||||
Version: 5.2.1
|
Version: 5.2.1
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: High-performance regular expression matching library
|
Summary: High-performance regular expression matching library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -8,6 +8,7 @@ URL: https://www.hyperscan.io/
|
|||||||
Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: hyperscan-aarch64-support.patch
|
Patch0: hyperscan-aarch64-support.patch
|
||||||
|
Patch1: Fix-build-errot-on-x86_64.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
@ -73,6 +74,9 @@ needed for developing Hyperscan applications.
|
|||||||
%{_includedir}/hs/
|
%{_includedir}/hs/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 24 2021 wangyue <wangyue92@huawei.com> - 5.2.1-3
|
||||||
|
- Fix build error on X86
|
||||||
|
|
||||||
* Mon Jul 20 2020 Yikun Jiang <yikunkero@gmail.com> - 5.2.1-2
|
* Mon Jul 20 2020 Yikun Jiang <yikunkero@gmail.com> - 5.2.1-2
|
||||||
- Add aarch64 support
|
- Add aarch64 support
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user