Remove -msse and -msse2 as they are x86 only flags.
Bug-AGL: SPEC-4600
Change-Id: I48f52c1c8be7ccfa2db9d70f09d81ad52006a891
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
MYCONF = "--mathlib=OPENBLAS --static --shared --use-cuda=no --fst-root=${STAGING_INCDIR}/../ --fst-version=1.8.0 --openblas-root=${STAGING_INCDIR}/../ "
+# remove x86-specific optimizations
+do_configure:prepend:aarch64(){
+
+sed -i -e "s#-msse -msse2##g" ${S}/makefiles/linux_openblas.mk
+
+}
+
+do_configure:prepend:arm(){
+
+sed -i -e "s#-msse -msse2##g" ${S}/makefiles/linux_openblas.mk
+
+}
+
+
do_configure() {
./configure ${MYCONF}