diff --git a/Makefile b/Makefile index d9c3374b38f6610de086f500c3ba340df6586e64..38fe1f5c1d1443671abbd54cbba5669e94d49436 100644 --- a/Makefile +++ b/Makefile @@ -85,9 +85,11 @@ endif ifneq ($(DEBUG_LEVEL), 2) OPT += -O2 -fno-omit-frame-pointer ifeq (,$(findstring ppc64,$(MACHINE))) # ppc64[le] doesn't support -momit-leaf-frame-pointer +ifneq ($(MACHINE),armv7l) OPT += -momit-leaf-frame-pointer endif endif +endif # if we're compiling for release, compile without debug code (-DNDEBUG) and # don't treat warnings as errors