move -flto to board.mk
current board that doesn work with flto is spresense and mimxrt10xx (due to xip image_vector_table is optimized out).
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
SPRESENSE_SDK = $(TOP)/hw/mcu/sony/cxd56/spresense-exported-sdk
|
||||
|
||||
INC += \
|
||||
$(SPRESENSE_SDK)/nuttx/include \
|
||||
$(SPRESENSE_SDK)/nuttx/arch \
|
||||
$(SPRESENSE_SDK)/nuttx/arch/chip \
|
||||
$(SPRESENSE_SDK)/sdk/bsp/include \
|
||||
$(SPRESENSE_SDK)/sdk/bsp/include/sdk \
|
||||
|
||||
CFLAGS += \
|
||||
-DCONFIG_WCHAR_BUILTIN \
|
||||
-DCONFIG_HAVE_DOUBLE \
|
||||
@@ -23,6 +14,15 @@ CFLAGS += \
|
||||
-fomit-frame-pointer \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_CXD56 \
|
||||
|
||||
SPRESENSE_SDK = $(TOP)/hw/mcu/sony/cxd56/spresense-exported-sdk
|
||||
|
||||
INC += \
|
||||
$(SPRESENSE_SDK)/nuttx/include \
|
||||
$(SPRESENSE_SDK)/nuttx/arch \
|
||||
$(SPRESENSE_SDK)/nuttx/arch/chip \
|
||||
$(SPRESENSE_SDK)/sdk/bsp/include \
|
||||
$(SPRESENSE_SDK)/sdk/bsp/include/sdk \
|
||||
|
||||
LIBS += \
|
||||
$(SPRESENSE_SDK)/sdk/libs/libapps.a \
|
||||
$(SPRESENSE_SDK)/sdk/libs/libsdk.a \
|
||||
|
||||
Reference in New Issue
Block a user