mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
greenhills: fix the no-lto link warning
ccarm: Warning: Unknown option "-fno-lto" passed to linker CC: assert/lib_stackchk.c ccarm: Warning: Unknown option "-fno-lto" passed to linker Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
@@ -20,8 +20,11 @@
|
||||
|
||||
CSRCS += lib_assert.c lib_stackchk.c
|
||||
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
|
||||
ifeq ($(CONFIG_LTO_NONE),n)
|
||||
ifeq ($(CONFIG_LTO_NONE),n)
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GHS),y)
|
||||
assert/lib_assert.c_CFLAGS += -Onolink
|
||||
assert/lib_stackchk.c_CFLAGS += -Onolink
|
||||
else ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
|
||||
assert/lib_assert.c_CFLAGS += -fno-lto
|
||||
assert/lib_stackchk.c_CFLAGS += -fno-lto
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user