Skip to content

Commit cf81182

Browse files
apaillier-ledgeriartemov-ledger
authored andcommitted
Enables the use of clang rt builtins instead of libgcc
1 parent 09860e1 commit cf81182

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
@@ -254,14 +254,16 @@ APP_FLAGS_APP_LOAD_PARAMS = $(shell printf '0x%x' $$(( $(STANDARD_APP_FLAGS) + $
254254
CC = $(CLANGPATH)clang
255255
AS = $(CLANGPATH)clang
256256
ifeq ($(TARGET_NAME),TARGET_NANOS)
257-
LD = $(GCCPATH)arm-none-eabi-gcc
257+
LD = $(GCCPATH)arm-none-eabi-gcc
258+
LDLIBS += -lgcc
258259
else
259-
LD = $(CLANGPATH)clang
260+
LD = $(CLANGPATH)clang
261+
LDLIBS += -lclang_rt.builtins
260262
endif
261263

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

264-
LDLIBS += -lm -lgcc -lc
266+
LDLIBS += -lm -lc
265267

266268
#####################################################################
267269
# MISC #

0 commit comments

Comments
 (0)