Attached to Project: CRUX-ARM
Opened by Mike - 2019-08-18
Last edited by Victor Martinez - 2019-08-19
Opened by Mike - 2019-08-18
Last edited by Victor Martinez - 2019-08-19
FS#78 - toolchain: gcc-static unnecessarily rebuilt
gcc-static is unnecessarily rebuilt each time make is invoked due to an incorrect filename extension in the Makefile target definition. Patch follows:
diff –git a/Makefile b/Makefile
index 4ab3882..568739d 100644
— a/Makefile
+++ b/Makefile
@@ -173,10 +173,10 @@ binutils-distclean: binutils-clean
# GCC-STATIC
-$(WORK)/gcc-$(GCC_VERSION).tar.bz2:
+$(WORK)/gcc-$(GCC_VERSION).tar.xz:
wget -P $(WORK) -c ftp://gcc.gnu.org/pub/gcc/releases/gcc-$(GCC_VERSION)/gcc-$(GCC_VERSION).tar.xz
-$(WORK)/gcc-$(GCC_VERSION): $(WORK)/gcc-$(GCC_VERSION).tar.bz2
+$(WORK)/gcc-$(GCC_VERSION): $(WORK)/gcc-$(GCC_VERSION).tar.xz
tar -C $(WORK) -xf $(WORK)/gcc-$(GCC_VERSION).tar.xz touch $(WORK)/gcc-$(GCC_VERSION)
Closed: https://crux-arm.nu/gitweb?p=toolchain.git;a=commit;h=df09bdbdc14fde3c70652f82b7936230239070fe Thanks for the report!