Skip to content

Commit 8e939f4

Browse files
apaillier-ledgeriartemov-ledger
authored andcommitted
Enables the use of clang rt builtins instead of libgcc
1 parent c4fe1dc commit 8e939f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile.standard_app

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,16 @@ APP_FLAGS_APP_LOAD_PARAMS = $(shell printf '0x%x' $$(( $(STANDARD_APP_FLAGS) + $
255255
CC = $(CLANGPATH)clang
256256
AS = $(CLANGPATH)clang
257257
ifeq ($(TARGET_NAME),TARGET_NANOS)
258-
LD = $(GCCPATH)arm-none-eabi-gcc
258+
LD = $(GCCPATH)arm-none-eabi-gcc
259+
LDLIBS += -lgcc
259260
else
260-
LD = $(CLANGPATH)clang
261+
LD = $(CLANGPATH)clang
262+
LDLIBS += -lclang_rt.builtins
261263
endif
262264

263265
AFLAGS += --target=arm-none-eabi
264266

265-
LDLIBS += -lm -lgcc -lc
267+
LDLIBS += -lm -lc
266268

267269
#####################################################################
268270
# MISC #

0 commit comments

Comments
 (0)