audio/kaldi: Unbreak on i386

The build looks for the __SSE2_MATH__ macro that clang doesn't define.
2024Q2
Yuri Victorovich 2024-01-21 11:16:58 -08:00
parent 7c6c0b205d
commit c5001da196
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ CMAKE_OFF= KALDI_BUILD_TEST
CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} \
-DKALDI_VERSION=${PORTVERSION}
CXXFLAGS_i386= -msse -mfpmath=sse # SSE is off by default on i386 and compilation fails: /usr/local/include/fst/float-weight.h:99:2: error: "Please compile with -msse -mfpmath=sse, or equivalent."
CXXFLAGS_i386= -msse -mfpmath=sse -D__SSE2_MATH__ # __SSE2_MATH__ is a gcc-specific macro that the code looks for: https://gcc.gnu.org/legacy-ml/gcc-patches/2002-08/msg01345.html
post-extract:
@${FIND} ${WRKSRC} -name "*.orig" -delete