Skip to content

Commit f21c534

Browse files
musl: add missing submodule auto-initialization
Signed-off-by: Florian Hofhammer <florian.hofhammer@fhofhammer.de>
1 parent c63d1b6 commit f21c534

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile.in

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ else
252252
GLIBC_SRC_GIT :=
253253
endif
254254

255+
ifeq ($(findstring $(srcdir),$(MUSL_SRCDIR)),$(srcdir))
256+
MUSL_SRC_GIT := $(MUSL_SRCDIR)/.git
257+
else
258+
MUSL_SRC_GIT :=
259+
endif
260+
255261
ifeq ($(findstring $(srcdir),$(QEMU_SRCDIR)),$(srcdir))
256262
QEMU_SRC_GIT := $(QEMU_SRCDIR)/.git
257263
else
@@ -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 $@) && \

0 commit comments

Comments
 (0)