Add -mfma for HAVE_FMA3 in the non-DYNAMIC_ARCH case as well
@@ -124,6 +124,9 @@ if (NOT DYNAMIC_ARCH)
if (HAVE_AVX)
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx")
endif ()
+ if (HAVE_FMA3)
+ set (CCOMMON_OPT "${CCOMMON_OPT} -mfma")
+ endif ()
if (HAVE_SSE)
set (CCOMMON_OPT "${CCOMMON_OPT} -msse")
endif ()
