[bugfix](compile) Fix compile hyperscan failed when build thirdparty #11481

This commit is contained in:
xy720
2022-08-04 11:21:17 +08:00
committed by GitHub
parent 7703912b3e
commit 36784d9131

View File

@ -605,6 +605,13 @@ build_hyperscan() {
check_if_source_exist "${RAGEL_SOURCE}"
cd "${TP_SOURCE_DIR}/${RAGEL_SOURCE}"
if [[ "${KERNEL}" != 'Darwin' ]]; then
cxxflags='-static'
else
cxxflags=''
fi
CXXFLAGS="${cxxflags}" \
./configure --prefix="${TP_INSTALL_DIR}"
make install