Avoid adding host-specific cpuflags to the common part of DYNAMIC_ARCH builds
# COMPILER_PREFIX = mingw32-
+ifndef DYNAMIC_ARCH
+ADD_CPUFLAGS = 1
+else
+ifdef TARGET_CORE
+ADD_CPUFLAGS = 1
+endif
+endif
+
+ifdef ADD_CPUFLAGS
ifdef HAVE_SSE
CCOMMON_OPT += -msse
+ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -msse
endif
-
+endif
+endif
ifeq ($(OSNAME), Interix)
ARFLAGS = -m x86
