diff --git a/community/babl/APKBUILD b/community/babl/APKBUILD
index d3861d1fad624786fbd11dd1630a9182973d3287..fe25e91e6c1074ee5dd7ee1c6554335a7ca72638 100644
--- a/community/babl/APKBUILD
+++ b/community/babl/APKBUILD
@@ -11,6 +11,8 @@ source="https://ftp.gimp.org/pub/babl/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
 
 build() {
 	cd "$builddir"
+	# See: https://bugzilla.gnome.org/show_bug.cgi?id=790745
+	[ "$CARCH" = "s390x" ] && sed -i -e 's/-Ofast//g' configure
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \