Skip to content

Commit

Permalink
build: update STDCLIB library configuration for terapines toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Oct 31, 2023
1 parent b7d44f6 commit d5917c3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Build/toolchain/terapines.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ endif
ifneq ($(findstring newlib,$(STDCLIB)),)
### Handle cases when STDCLIB variable has newlib in it
ifeq ($(STDCLIB),newlib_full)
LDLIBS += -lc -lclang_rt.builtins
LDLIBS += -lc_size -lclang_rt.builtins
else ifeq ($(STDCLIB),newlib_fast)
LDLIBS += -lc_size -lclang_rt.builtins_size
LDLIBS += -lc_nano -lclang_rt.builtins_size
STDCLIB_LDFLAGS += -u _printf_float -u _scanf_float
else ifeq ($(STDCLIB),newlib_small)
LDLIBS += -lc_size -lclang_rt.builtins_size
LDLIBS += -lc_nano -lclang_rt.builtins_size
STDCLIB_LDFLAGS += -u _printf_float
else ifeq ($(STDCLIB),newlib_nano)
LDLIBS += -lc_size -lclang_rt.builtins_size
LDLIBS += -lc_nano -lclang_rt.builtins_size
STDCLIB_LDFLAGS += -u _printf_float
else
LDLIBS += -lc_size -lclang_rt.builtins_size
LDLIBS += -lc_nano -lclang_rt.builtins_size
STDCLIB_LDFLAGS += -u _printf_float
endif
###
else ifneq ($(findstring libncrt,$(STDCLIB)),)
Expand All @@ -43,7 +45,8 @@ else ifeq ($(STDCLIB),nospec)
COMMON_FLAGS +=
###
else
LDLIBS += -lc_size -lclang_rt.builtins_size
LDLIBS += -lc_nano -lclang_rt.builtins_size
STDCLIB_LDFLAGS += -u _printf_float
###
endif

Expand Down

0 comments on commit d5917c3

Please sign in to comment.