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