From 20f54973578749b6bb18e598d0daa819fce4a132 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 6 Apr 2017 01:32:55 +0000 Subject: [PATCH] Fixed /lib /lib64 problem at CLFS creation --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 833802c..d701faa 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,26 @@ include vars.mk .PHONY: all clean distclean -all: linux-headers libgmp libmpfr libmpc binutils gcc-static glibc gcc-final setup test +all: filesystem 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 -rf $(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 +distclean: clean filesystem-clean linux-headers-distclean libgmp-distclean libmpfr-distclean libmpc-distclean binutils-distclean gcc-static-distclean glibc-distclean gcc-final-distclean test-distclean + + +# Prepare the filessytem +$(CLFS)/lib: + install -d $(CLFS)/lib + ln -s lib $(CLFS)/lib64 + install -d $(CLFS)/usr/lib + ln -s lib $(CLFS)/usr/lib64 + touch $(CLFS)/lib + +filesystem: $(CLFS)/lib + +filesystem-clean: + rm -rf $(CLFS)/lib* $(CLFS)/usr/lib* # LINUX HEADERS -- 2.26.2