Skip to content

Commit a18114e

Browse files
Enables the use of clang rt builtins instead of libgcc
1 parent b75cad3 commit a18114e

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
@@ -234,14 +234,16 @@ APP_FLAGS_APP_LOAD_PARAMS = $(shell printf '0x%x' $$(( $(STANDARD_APP_FLAGS) + $
234234
CC = $(CLANGPATH)clang
235235
AS = $(CLANGPATH)clang
236236
ifeq ($(TARGET_NAME),TARGET_NANOS)
237-
LD = $(GCCPATH)arm-none-eabi-gcc
237+
LD = $(GCCPATH)arm-none-eabi-gcc
238+
LDLIBS += -lgcc
238239
else
239-
LD = $(CLANGPATH)clang
240+
LD = $(CLANGPATH)clang
241+
LDLIBS += -lclang_rt.builtins
240242
endif
241243

242244
AFLAGS += --target=arm-none-eabi
243245

244-
LDLIBS += -lm -lgcc -lc
246+
LDLIBS += -lm -lc
245247

246248
#####################################################################
247249
# MISC #

0 commit comments

Comments
 (0)