From 8513933cd3b195207a16d7bdcec54bc9d31428c9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 14 Aug 2024 13:38:22 +0900 Subject: [PATCH] mention https://github.com/llvm/llvm-project/issues/103592 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b96f45bb..63134117 100644 --- a/Makefile +++ b/Makefile @@ -618,6 +618,8 @@ PIC_OBJS = \ # the `%.a` rule below for details. # Note: libc.so is special because it shouldn't link to libc.so. +# Note: --allow-undefined-file=linker-provided-symbols.txt is +# a workaround for https://github.com/llvm/llvm-project/issues/103592 $(SYSROOT_LIB)/libc.so: $(OBJDIR)/libc.so.a $(BUILTINS_LIB) $(CC) $(CFLAGS) -nodefaultlibs -shared --sysroot=$(SYSROOT) \ -o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB) \