We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4db5398 commit eba961bCopy full SHA for eba961b
1 file changed
Makefile
@@ -506,7 +506,8 @@ PIC_OBJS = \
506
# to CC. This is a workaround for a Windows command line size limitation. See
507
# the `%.a` rule below for details.
508
$(SYSROOT_LIB)/%.so: $(OBJDIR)/%.so.a $(BUILTINS_LIB)
509
- $(CC) -nodefaultlibs -shared -o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB)
+ $(CC) -nodefaultlibs -shared --sysroot=$(SYSROOT) \
510
+ -o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB)
511
512
$(OBJDIR)/libc.so.a: $(LIBC_SO_OBJS) $(MUSL_PRINTSCAN_LONG_DOUBLE_SO_OBJS)
513
0 commit comments