Browse Source
shlib: specify the sysroot to find the correct crt1 (#441)
pull/445/head
YAMAMOTO Takashi
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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) |
|
|
|
|
|
|
|