Browse Source

shlib: specify the sysroot to find the correct crt1 (#441)

pull/445/head
YAMAMOTO Takashi 1 year ago
committed by GitHub
parent
commit
eba961befc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Makefile

3
Makefile

@ -506,7 +506,8 @@ PIC_OBJS = \
# to CC. This is a workaround for a Windows command line size limitation. See
# the `%.a` rule below for details.
$(SYSROOT_LIB)/%.so: $(OBJDIR)/%.so.a $(BUILTINS_LIB)
$(CC) -nodefaultlibs -shared -o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB)
$(CC) -nodefaultlibs -shared --sysroot=$(SYSROOT) \
-o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB)
$(OBJDIR)/libc.so.a: $(LIBC_SO_OBJS) $(MUSL_PRINTSCAN_LONG_DOUBLE_SO_OBJS)

Loading…
Cancel
Save