Make libtool cloning works for older git

This commit is contained in:
Wildan Mubarok 2025-06-13 02:16:00 +00:00
parent 3b67441ef1
commit 5ebd0729f9

View File

@ -75,12 +75,12 @@ $(PREFIX)/libtool:
mkdir -p "$@.partial" mkdir -p "$@.partial"
git clone \ git clone \
--recurse-submodules \
--shallow-submodules \
"https://gitlab.redox-os.org/redox-os/libtool/" \ "https://gitlab.redox-os.org/redox-os/libtool/" \
--branch "v$(LIBTOOL_VERSION)-redox" \ --branch "v$(LIBTOOL_VERSION)-redox" \
--filter=tree:0 \ --depth 2 \
"$@.partial" "$@.partial"
git -C "$@.partial" submodule update \
--filter=tree:0 --init --recursive
touch "$@.partial" touch "$@.partial"
echo $(LIBTOOL_VERSION) > $@.partial/.tarball-version echo $(LIBTOOL_VERSION) > $@.partial/.tarball-version