diff --git a/Makefile b/Makefile index 4441e9d7..d79aae5b 100644 --- a/Makefile +++ b/Makefile @@ -111,8 +111,11 @@ endif # -------------------------------------------------------------- # MOD builds -EXTRA_MOD_FLAGS = -I../include/single-precision -fsingle-precision-constant -mno-unaligned-access +EXTRA_MOD_FLAGS = -I../include/single-precision -fsingle-precision-constant +ifeq ($(CPU_ARM),true) +EXTRA_MOD_FLAGS += -mno-unaligned-access +endif ifeq ($(WITH_LTO),true) EXTRA_MOD_FLAGS += -ffat-lto-objects endif