aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-04-24 00:13:00 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-04-24 00:48:14 -0300
commit2e378d328901135305852ac95027f23fedf9e3f8 (patch)
tree59dd5233c5d7076d925251fd854d1260c00adde9
parentf24dbf35309161b5caa63feb810f9679033186e3 (diff)
downloadaports-2e378d328901135305852ac95027f23fedf9e3f8.tar.gz
aports-2e378d328901135305852ac95027f23fedf9e3f8.tar.bz2
aports-2e378d328901135305852ac95027f23fedf9e3f8.tar.xz
main/libjpeg-turbo: fix tests on s390x
-rw-r--r--main/libjpeg-turbo/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/libjpeg-turbo/APKBUILD b/main/libjpeg-turbo/APKBUILD
index 2709d4d91a..28a0321b44 100644
--- a/main/libjpeg-turbo/APKBUILD
+++ b/main/libjpeg-turbo/APKBUILD
@@ -35,6 +35,10 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+ case "$CARCH" in
+ ppc64le) export JSIMD_FORCENONE=1;;
+ s390x|riscv64) _floattest="-DFLOATTEST=fp-contract";;
+ esac
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
@@ -42,6 +46,7 @@ build() {
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DWITH_JPEG8=1 \
+ $_floattest \
$CMAKE_CROSSOPTS
make
}