CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed /lib /lib64 problem at CLFS creation
authorVictor Martinez <pitillo@ono.com>
Thu, 6 Apr 2017 01:10:39 +0000 (01:10 +0000)
committerVictor Martinez <pitillo@ono.com>
Thu, 6 Apr 2017 01:10:39 +0000 (01:10 +0000)
Makefile

index 748084dc93e85a463d73e2b64af8874cc8728115..7ea12fa6afb78f10c776da824e792674489039a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,25 @@ 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
 $(WORK)/linux-$(KERNEL_HEADERS_VERSION).tar.xz: