summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/libjpeg-turbo/APKBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/libjpeg-turbo/APKBUILD b/user/libjpeg-turbo/APKBUILD
index 00b4ec314..cbecdd1a4 100644
--- a/user/libjpeg-turbo/APKBUILD
+++ b/user/libjpeg-turbo/APKBUILD
@@ -28,6 +28,13 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/344
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
+ case "$CARCH" in
+ ppc) _floattest=64bit;;
+ esac
+
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
@@ -36,6 +43,7 @@ build() {
-DCMAKE_C_FLAGS="$CFLAGS" \
-DENABLE_STATIC=OFF \
-DWITH_JPEG8=ON \
+ ${_floattest:+-DFLOATTEST="$_floattest"} \
${CMAKE_CROSSOPTS} .
make
}