diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-02-26 05:32:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-02-27 01:48:43 +0100 |
commit | d7daffed366df1f70d5dd3d344f40f9fbe45ed08 (patch) | |
tree | 2ab8fbb3c7c90ee42ce65b343095feae962d317e | |
parent | 6c5621ae0760187397cf1a8a490720f395687ae5 (diff) |
nios2: fix glibc bootup
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-rw-r--r-- | toolchain/glibc/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile index 7c35e372b..ecd6f8d2b 100644 --- a/toolchain/glibc/Makefile +++ b/toolchain/glibc/Makefile @@ -6,6 +6,12 @@ include ../rules.mk include Makefile.inc include ${ADK_TOPDIR}/mk/buildhlp.mk +# glibc does not boot with Os and CPU specific FLAGS for nios2 +ifeq ($(ADK_TARGET_ARCH_NIOS2),y) +TARGET_CFLAGS:= -O2 +TARGET_CXXFLAGS:= -O2 +endif + # glibc does not compile with NEON suggested CFLAGS/CXXFLAGS TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS)) TARGET_CXXFLAGS:= $(filter-out -ffast-math,$(TARGET_CXXFLAGS)) |