hyperscan: fix broken build w/ external toolchain
authorJohn Audia <therealgraysky@proton.me>
Sat, 20 Apr 2024 17:39:33 +0000 (13:39 -0400)
committerRosen Penev <rosenp@gmail.com>
Tue, 30 Apr 2024 20:59:53 +0000 (13:59 -0700)
commit8c2ec5746274534a7e6db029a9e2e519224d32b1
tree65d673c056b5ffca32bf80410309a76cfe8cb81f
parent6b7d905a3aad16513a47dd4acc6e3c07683630b8
hyperscan: fix broken build w/ external toolchain

If building with the project external toolchain, the gcc check
fails to set the correct value for TUNE_FLAG to allow the min
supported SSSE3 compiler support test to pass.  This patch hacks
the file to set to the correct value.

Links to upstream bug reports:
https://github.com/openwrt/openwrt/issues/15216
https://github.com/intel/hyperscan/issues/431

Build system: x86/64 (build system toolchain and x86/64 w/ external toolchain (18-Apr-2024 snapshot)
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
libs/hyperscan/Makefile
libs/hyperscan/patches/0001-CMakeLists.txt-hack-for-our-build-system.patch [new file with mode: 0644]