arch: Change --print-file-name=libgcc.a to --print-libgcc-file-name

Since the new option is more compatible with clang

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-07-20 02:19:36 +08:00
committed by Brennan Ashton
parent 79a3fd1932
commit 47f2090410
19 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ endif
# Add the builtin library
EXTRA_LIBS += -lgcc
EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libgcc.a}}"
EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-libgcc-file-name}}"
ifneq ($(CONFIG_LIBM),y)
EXTRA_LIBS += -lm