export CXXFLAGS=`echo $CXXFLAGS | sed s,-g,,g`
%endif
+# Copied from Crosswalk
+%ifarch %{arm}
+export CFLAGS=`echo $CFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export CXXFLAGS=`echo $CXXFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export FFLAGS=`echo $FFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+%endif
+
# Building the RPM in the GBS chroot fails with errors such as
# /usr/lib/gcc/i586-tizen-linux/4.7/../../../../i586-tizen-linux/bin/ld:
# failed to set dynamic section sizes: Memory exhausted
%endif
%ifarch %{arm}
-Dtarget_arch=arm \
+-Dsysroot= \
%endif
-Duse_alsa=0 \
-Duse_gnome_keyring=0 \