- patch -p1 -i $SRC/firefox-install-dir.patch
- patch -p1 -i $SRC/0001-Fix-build-with-USE_SKIA_GPU.patch
-
- # determine some flags depending on SOC
- FPU=vfp; ARCH=armv6; THUMB=no
- case $(uname -m) in
- armv7*) ARCH=armv7; THUMB=yes;;
- esac
- for flag in $CFLAGS; do
- case $flag in
- -mfpu=neon*) FPU=neon;;
- esac
- done
-
- #ac_add_options --with-thumb-interwork=$THUMB
- #ac_add_options --with-soft-float=no
- #ac_add_options --with-thumb=$THUMB
-
-# mk_add_options MOZ_ALIGN=no
-# ac_add_options --with-arch=$ARCH
-# ac_add_options --with-fpu=$FPU
-# ac_add_options --with-float-abi=hard
-# ac_add_options --with-thumb-interwork=no
-# ac_add_options --with-thumb=no
+ # Fix to avoid gcc6 compilations error at install stage
+ export CFLAGS="$CFLAGS -fno-schedule-insns"
+ export CXXFLAGS="$CFLAGS"