- rm -vf $(WORK)/gcc-$(GCC_VERSION).tar.bz2
-
-
-# LIBTOOL
-
-$(WORK)/libtool-$(LIBTOOL_VERSION).tar.xz:
- wget -P $(WORK) -c http://ftp.gnu.org/gnu/libtool/libtool-$(LIBTOOL_VERSION).tar.xz
-
-$(WORK)/libtool-$(LIBTOOL_VERSION): $(WORK)/libtool-$(LIBTOOL_VERSION).tar.xz
- tar -C $(WORK) -xvJf $(WORK)/libtool-$(LIBTOOL_VERSION).tar.xz
- touch $(WORK)/libtool-$(LIBTOOL_VERSION)
-
-$(WORK)/build-libtool: $(WORK)/libtool-$(LIBTOOL_VERSION)
- mkdir -p $(WORK)/build-libtool
- touch $(WORK)/build-libtool
-
-$(CROSSTOOLS)/lib/libltdl.so: $(WORK)/build-libtool $(WORK)/libtool-$(LIBTOOL_VERSION)
- cd $(WORK)/build-libtool && \
- unset CFLAGS && unset CXXFLAGS && \
- LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" && \
- $(WORK)/libtool-$(LIBTOOL_VERSION)/configure --prefix=$(CROSSTOOLS) \
- --program-prefix=$(TARGET)- && \
- make && make install || exit 1
- touch $(CROSSTOOLS)/lib/libltdl.so
-
-libtool: gcc-final $(CROSSTOOLS)/lib/libltdl.so
-
-libtool-clean:
- rm -vrf $(WORK)/build-libtool $(WORK)/libtool-$(LIBTOOL_VERSION)
-
-libtool-distclean:
- rm -vf $(WORK)/libtool-$(LIBTOOL_VERSION).tar.xz