From 400014dfbf946853f2210b09f02aff152b270f5b Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 14 Jun 2017 18:46:08 +0200 Subject: [PATCH] firefox: try to fix i686 builds --- srcpkgs/firefox/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index b9a3bfba930..0ad754c84a2 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -77,6 +77,13 @@ do_build() { export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" fi + case "$XBPS_TARGET_MACHINE" in + i686) + export CFLAGS+=" -D_FILE_OFFSET_BITS=64" + export CXXFLAGS+=" -D_FILE_OFFSET_BITS=64" + ;; + esac + export LDFLAGS+=" -Wl,-rpath=/usr/lib/firefox" if [ "$SOURCE_DATE_EPOCH" ]; then