icecat: fix cross

This commit is contained in:
Juergen Buchmueller 2016-12-05 17:05:11 +01:00
parent 7118e1781b
commit 718dc50fcc

View file

@ -12,8 +12,6 @@ checksum="8163e5bc53f69d9f9b0fc5e9f95fae33da8139ae0f902756751cadbaa27e6ee9"
nopie=yes
lib32disabled=yes
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/29588/steps/shell_3/logs/stdio"
hostmakedepends="unzip zip pkg-config perl python yasm"
makedepends="nss-devel libjpeg-turbo-devel icu-devel
pixman-devel sqlite-devel gst-plugins-base1-devel gtk+-devel
@ -40,15 +38,17 @@ if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) CXXFLAGS+=" -DNO_STABS_SUPPORT=1"
;;
esac
if [ -n "$CROSS_BUILD" ]; then
# Void's system-sqlite is compiled with SQLITE_ENABLE_DBSTAT_VTAB,
# but the test fails when cross compiling
export ac_cv_sqlite_dbstat_vtab=yes
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
cp ${FILESDIR}/stab.h toolkit/crashreporter/google-breakpad/src/
$XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/community/firefox-esr/stab.h
mv stab.h toolkit/crashreporter/google-breakpad/src/
;;
esac