Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 14, 2024
1 parent fab3862 commit 8513933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 8513933

Please sign in to comment.