File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,12 @@ else
252252GLIBC_SRC_GIT :=
253253endif
254254
255+ ifeq ($(findstring $(srcdir ) ,$(MUSL_SRCDIR ) ) ,$(srcdir ) )
256+ MUSL_SRC_GIT := $(MUSL_SRCDIR ) /.git
257+ else
258+ MUSL_SRC_GIT :=
259+ endif
260+
255261ifeq ($(findstring $(srcdir ) ,$(QEMU_SRCDIR ) ) ,$(srcdir ) )
256262QEMU_SRC_GIT := $(QEMU_SRCDIR ) /.git
257263else
@@ -742,7 +748,7 @@ stamps/build-gcc-musl-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutils
742748 $(MAKE) -C $(notdir $@) inhibit-libc=true install-target-libgcc
743749 mkdir -p $(dir $@) && touch $@
744750
745- stamps/build-musl-linux-headers : $(MUSL_SRCDIR ) stamps/build-gcc-musl-stage1
751+ stamps/build-musl-linux-headers : $(MUSL_SRCDIR ) $( MUSL_SRC_GIT ) stamps/build-gcc-musl-stage1
746752 rm -rf $@ $(notdir $@ )
747753 mkdir $(notdir $@ )
748754 cd $(notdir $@ ) && CC=" $( MUSL_CC_FOR_TARGET) " $< /configure \
@@ -755,7 +761,7 @@ stamps/build-musl-linux-headers: $(MUSL_SRCDIR) stamps/build-gcc-musl-stage1
755761 $(MAKE ) -C $(notdir $@ ) install-headers
756762 mkdir -p $(dir $@ ) && touch $@
757763
758- stamps/build-musl-linux : $(MUSL_SRCDIR ) stamps/build-gcc-musl-stage1
764+ stamps/build-musl-linux : $(MUSL_SRCDIR ) $( MUSL_SRC_GIT ) stamps/build-gcc-musl-stage1
759765 rm -rf $@ $(notdir $@ )
760766 mkdir $(notdir $@ )
761767 cd $(notdir $@ ) && \
You can’t perform that action at this time.
0 commit comments