Test MK_ARM_ABI rather than if WITHOUT_ARM_ABI is defined.

This commit is contained in:
Warner Losh 2014-04-01 14:24:03 +00:00
parent c77d0c982c
commit 8b77bb7921

View File

@ -44,10 +44,10 @@ CFLAGS += -mno-thumb-interwork
.endif
.if empty(DDB_ENABLED)
.if defined(WITHOUT_ARM_EABI) && ${COMPILER_TYPE} != "clang"
.if MK_ARM_EABI == "no" && ${COMPILER_TYPE} == "gcc"
CFLAGS += -mno-apcs-frame
.endif
.elif !defined(WITHOUT_ARM_EABI)
.elif MK_ARM_EABI != "no"
CFLAGS += -funwind-tables
.if ${COMPILER_TYPE} == "clang"
# clang requires us to tell it to emit assembly with unwind information