From: Jose V Beneyto Date: Sat, 29 Nov 2014 23:11:38 +0000 (+0000) Subject: Fixed and cleanup libgmp stage in Makefile and config in vars.mk X-Git-Url: http://gitweb/?a=commitdiff_plain;h=2bab474cbe6dba1d2c032f6080ac0f47b51951ad;p=toolchain.git Fixed and cleanup libgmp stage in Makefile and config in vars.mk --- diff --git a/Makefile b/Makefile index 0ecebb7..b09b9df 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ include vars.mk all: linux-headers libgmp libmpfr libmpc binutils gcc-static glibc gcc-final setup test clean: linux-headers-clean libgmp-clean libmpfr-clean libmpc-clean binutils-clean gcc-static-clean glibc-clean gcc-final-clean test-clean - rm -rvf $(CROSSTOOLS)/* $(CLFS)/* + rm -rvf $(CROSSTOOLS) $(CLFS) distclean: clean linux-headers-distclean libgmp-distclean libmpfr-distclean libmpc-distclean binutils-distclean gcc-static-distclean glibc-distclean gcc-final-distclean test-distclean @@ -45,6 +45,7 @@ $(WORK)/gmp-$(LIBGMP_VERSION).tar.bz2: $(WORK)/gmp-$(LIBGMP_VERSION): $(WORK)/gmp-$(LIBGMP_VERSION).tar.bz2 tar -C $(WORK) -xvjf $(WORK)/gmp-$(LIBGMP_VERSION).tar.bz2 + mv `find $(WORK) -type d -name 'gmp-*'` $(WORK)/gmp-$(LIBGMP_VERSION) touch $(WORK)/gmp-$(LIBGMP_VERSION) $(WORK)/build-libgmp: $(WORK)/gmp-$(LIBGMP_VERSION) @@ -55,7 +56,7 @@ $(CROSSTOOLS)/lib/libgmp.so: $(WORK)/build-libgmp cd $(WORK)/build-libgmp && \ unset CFLAGS && unset CXXFLAGS && \ CPPFLAGS=-fexceptions \ - $(WORK)/gmp-$(LIBGMP_VERSION_MIN)/configure --prefix=$(CROSSTOOLS) --enable-cxx && \ + $(WORK)/gmp-$(LIBGMP_VERSION)/configure --prefix=$(CROSSTOOLS) --enable-cxx && \ make && make install || exit 1 touch $(CROSSTOOLS)/lib/libgmp.so diff --git a/vars.mk b/vars.mk index a194618..c648ca8 100644 --- a/vars.mk +++ b/vars.mk @@ -12,7 +12,6 @@ WORK = $(TOPDIR)/work KERNEL_HEADERS_VERSION = 3.5.4 LIBGMP_VERSION = 6.0.0a -LIBGMP_VERSION_MIN = 6.0.0 LIBMPFR_VERSION = 3.1.2 LIBMPC_VERSION = 1.0.2 BINUTILS_VERSION = 2.24