]>
Commit | Line | Data |
---|---|---|
a0195fb6 MT |
1 | From 66189546403e5476c560bdbad89d24c3df87b172 Mon Sep 17 00:00:00 2001 |
2 | From: Yue Ni <niyue.com@gmail.com> | |
3 | Date: Tue, 19 Jan 2021 17:03:02 +0800 | |
4 | Subject: [PATCH] Fix hyperscan compilation issue for | |
5 | https://github.com/intel/hyperscan/issues/292, avoid the compilation error | |
6 | reporting 'undefined reference to `avx2_snprintf`'. | |
7 | ||
8 | --- | |
9 | cmake/build_wrapper.sh | 2 +- | |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
11 | ||
12 | diff --git a/cmake/build_wrapper.sh b/cmake/build_wrapper.sh | |
13 | index 1962813f..895610c0 100755 | |
14 | --- a/cmake/build_wrapper.sh | |
15 | +++ b/cmake/build_wrapper.sh | |
16 | @@ -17,7 +17,7 @@ KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX) | |
17 | LIBC_SO=$("$@" --print-file-name=libc.so.6) | |
18 | cp ${KEEPSYMS_IN} ${KEEPSYMS} | |
19 | # get all symbols from libc and turn them into patterns | |
20 | -nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ ]*\).*/^\1$/' >> ${KEEPSYMS} | |
21 | +nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ @]*\).*/^\1$/' >> ${KEEPSYMS} | |
22 | # build the object | |
23 | "$@" | |
24 | # rename the symbols in the object |