build: Remove unneeded libgcc files in make dist
This commit is contained in:
parent
c945ebc4b2
commit
37d3e80757
@ -207,6 +207,16 @@ dist:
|
|||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/freestanding-headers/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/freestanding-headers/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/.gitignore"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/.gitignore"
|
||||||
|
|
||||||
|
libgcc_needed="i686 x86_64-no-red-zone"; \
|
||||||
|
for f in $$libgcc_needed; do \
|
||||||
|
mv '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/libgcc-$$f.a" '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/libgcc-$$f.a.save"; \
|
||||||
|
done; \
|
||||||
|
rm '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries"/*.a; \
|
||||||
|
for f in $$libgcc_needed; do \
|
||||||
|
mv '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/libgcc-$$f.a.save" '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/libgcc-binaries/libgcc-$$f.a"; \
|
||||||
|
done
|
||||||
|
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/limine-efi/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/limine-efi/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/limine-efi/.gitignore"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/limine-efi/.gitignore"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/stivale/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/stivale/.git"
|
||||||
|
15
bootstrap
15
bootstrap
@ -11,20 +11,7 @@ cd "$srcdir"
|
|||||||
[ -d freestanding-headers ] || git clone https://github.com/mintsuki/freestanding-headers.git
|
[ -d freestanding-headers ] || git clone https://github.com/mintsuki/freestanding-headers.git
|
||||||
[ -d stivale ] || git clone https://github.com/stivale/stivale.git
|
[ -d stivale ] || git clone https://github.com/stivale/stivale.git
|
||||||
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git
|
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git
|
||||||
|
[ -d libgcc-binaries ] || git clone https://github.com/mintsuki/libgcc-binaries.git
|
||||||
if ! [ -d libgcc-binaries ]; then
|
|
||||||
git clone https://github.com/mintsuki/libgcc-binaries.git
|
|
||||||
|
|
||||||
# Remove the libgcc files we don't need
|
|
||||||
libgcc_needed="i686 x86_64-no-red-zone"
|
|
||||||
for f in $libgcc_needed; do
|
|
||||||
mv libgcc-binaries/libgcc-$f.a libgcc-binaries/libgcc-$f.a.save
|
|
||||||
done
|
|
||||||
rm libgcc-binaries/*.a
|
|
||||||
for f in $libgcc_needed; do
|
|
||||||
mv libgcc-binaries/libgcc-$f.a.save libgcc-binaries/libgcc-$f.a
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
automake_libdir="$(automake --print-libdir)"
|
automake_libdir="$(automake --print-libdir)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user