libvips: enable the SSSE3 target (#8156)

* libvips: enable the SSSE3 target

This reverts commit 91225182, which was introduced in PR #6845.

* libvips: make CMake aware of the CPPFLAGS env
This commit is contained in:
Kleis Auke Wolthuizen 2022-08-05 13:11:56 +02:00 committed by GitHub
parent 02abbeaf3a
commit 2354d9dd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -162,13 +162,11 @@ popd
pushd $SRC/libjxl
# Ensure libvips finds JxlEncoderInitBasicInfo
sed -i '/^Libs.private:/ s/$/ -lc++/' lib/jxl/libjxl.pc.in
# FIXME: Remove the `-DHWY_DISABLED_TARGETS=HWY_SSSE3` workaround, see:
# https://github.com/libjxl/libjxl/issues/858
extra_libjxl_flags='-DHWY_DISABLED_TARGETS=HWY_SSSE3'
# CMake ignores the CPPFLAGS env, so prepend it to -DCMAKE_C{XX,}_FLAGS instead
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_FLAGS="$CPPFLAGS $CFLAGS $extra_libjxl_flags" \
-DCMAKE_CXX_FLAGS="$CPPFLAGS $CXXFLAGS $extra_libjxl_flags" \
-DCMAKE_C_FLAGS="$CPPFLAGS $CFLAGS" \
-DCMAKE_CXX_FLAGS="$CPPFLAGS $CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX=$WORK \
-DZLIB_ROOT=$WORK \
-DBUILD_SHARED_LIBS=0 \