diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-25 08:45:25 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-25 08:45:45 +0200 |
commit | efe3a2f6340c6405b09508a1d4ed7cc6423de597 (patch) | |
tree | bd9ce8bbbeebeeb2e2beeafdd47311b9b121439d | |
parent | 7ae1610f8ff8864bbd3e81b0696b3885ac5a2c60 (diff) |
lto couldn't be used for gcc itself
-rw-r--r-- | toolchain/gcc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 6fdd62767..93ef6fcf4 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -12,6 +12,10 @@ TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS)) TARGET_CXXFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CXXFLAGS)) endif +# disable lto for gcc +TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS)) +TARGET_CXXFLAGS:= $(filter-out -flto,$(TARGET_CXXFLAGS)) + ifeq ($(ADK_TARGET_ARCH_XTENSA),y) TARGET_CFLAGS:= $(filter-out -mtext-section-literals,$(TARGET_CFLAGS)) TARGET_CXXFLAGS:= $(filter-out -mtext-section-literals,$(TARGET_CXXFLAGS)) |