Signed-off-by: Michael Tremer michael.tremer@ipfire.org --- lfs/zstd | 11 +++++++++-- make.sh | 1 + 2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/lfs/zstd b/lfs/zstd index c6af0f129..a4f0e1699 100644 --- a/lfs/zstd +++ b/lfs/zstd @@ -30,7 +30,14 @@ THISAPP = zstd-$(VER) DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) -TARGET = $(DIR_INFO)/$(THISAPP) + +ifeq "$(TOOLCHAIN)" "1" + TARGET = $(DIR_INFO)/$(THISAPP)-tools + PREFIX = $(TOOLS_DIR) +else + TARGET = $(DIR_INFO)/$(THISAPP) + PREFIX = /usr +endif
############################################################################### # Top-level Rules @@ -74,6 +81,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && make $(MAKETUNING) - cd $(DIR_APP) && make prefix=/usr install + cd $(DIR_APP) && make prefix=$(PREFIX) install @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/make.sh b/make.sh index cf4e779e4..a6c088dd5 100755 --- a/make.sh +++ b/make.sh @@ -1037,6 +1037,7 @@ buildtoolchain() { lfsmake1 binutils PASS=2 lfsmake1 gcc PASS=2 lfsmake1 zlib + lfsmake1 zstd lfsmake1 ccache PASS=2 lfsmake1 tcl lfsmake1 expect
This version has changed its build system to cmake and can use zstd. We build zstd just before this package, but depend on cmake from the host system.
Signed-off-by: Michael Tremer michael.tremer@ipfire.org --- lfs/ccache | 41 ++++++++++++----------------------------- make.sh | 3 +-- 2 files changed, 13 insertions(+), 31 deletions(-)
diff --git a/lfs/ccache b/lfs/ccache index e930f20d1..7782429dc 100644 --- a/lfs/ccache +++ b/lfs/ccache @@ -24,24 +24,13 @@
include Config
-VER = 3.7.12 +VER = 4.1
THISAPP = ccache-$(VER) DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) -TARGET = $(DIR_INFO)/$(THISAPP)-pass$(PASS) - -ifeq "$(PASS)" "1" - CFLAGS := $(patsubst -march=%,,$(CFLAGS)) - CFLAGS := $(patsubst -mtune=%,,$(CFLAGS)) - CFLAGS := $(patsubst -mfpu=%,,$(CFLAGS)) - CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS)) - CFLAGS := $(patsubst -mindirect-branch=%,,$(CFLAGS)) - CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS)) - CFLAGS := $(patsubst -fstack-clash-protection,,$(CFLAGS)) - CFLAGS := $(patsubst -fcf-protection,,$(CFLAGS)) -endif +TARGET = $(DIR_INFO)/$(THISAPP)-tools
############################################################################### # Top-level Rules @@ -51,7 +40,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 4c9a09ae499d1d82bb83e67f1068f9bb +$(DL_FILE)_MD5 = 539df5f81b853cb69e88f8dd148d9fc8
install : $(TARGET)
@@ -81,30 +70,24 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=$(TOOLS_DIR) - cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) - cd $(DIR_APP) && make install - -ifeq "$(TOOLCHAIN)" "1" - ifeq "$(PASS)" "1" + cd $(DIR_APP) && mkdir -pv build + cd $(DIR_APP)/build && cmake \ + -DCMAKE_INSTALL_PREFIX=$(TOOLS_DIR) \ + -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES=$(TOOLS_DIR)/include \ + .. + cd $(DIR_APP)/build && make $(MAKETUNING) VERBOSE=1 + cd $(DIR_APP)/build && make install + + # Install symlinks mkdir -pv $(TOOLS_DIR)/ccache/bin ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/gcc ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/g++ ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/cc ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/c++ - ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-gcc - ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-g++ - ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-cc - ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(CROSSTARGET)-c++ - endif - - ifeq "$(PASS)" "2" ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-gcc ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-g++ ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-cc ln -svf ../../bin/ccache $(TOOLS_DIR)/ccache/bin/$(BUILDTARGET)-c++ - endif -endif
@rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/make.sh b/make.sh index a6c088dd5..886e02512 100755 --- a/make.sh +++ b/make.sh @@ -1028,7 +1028,6 @@ buildtoolchain() { export LOGFILE
lfsmake1 stage1 - lfsmake1 ccache PASS=1 lfsmake1 binutils PASS=1 lfsmake1 gcc PASS=1 lfsmake1 linux KCFG="-headers" @@ -1038,7 +1037,7 @@ buildtoolchain() { lfsmake1 gcc PASS=2 lfsmake1 zlib lfsmake1 zstd - lfsmake1 ccache PASS=2 + lfsmake1 ccache lfsmake1 tcl lfsmake1 expect lfsmake1 dejagnu
Since programs from the toolchain are linked against this, we need to make this library available in stage 2, too.
Signed-off-by: Michael Tremer michael.tremer@ipfire.org --- make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/make.sh b/make.sh index 886e02512..887298d1d 100755 --- a/make.sh +++ b/make.sh @@ -1079,6 +1079,7 @@ buildbase() { lfsmake2 tzdata lfsmake2 cleanup-toolchain lfsmake2 zlib + lfsmake2 zstd lfsmake2 binutils lfsmake2 gmp lfsmake2 gmp-compat @@ -1391,7 +1392,6 @@ buildipfire() { lfsmake2 spandsp lfsmake2 lz4 lfsmake2 lzo - lfsmake2 zstd lfsmake2 openvpn lfsmake2 mpage lfsmake2 dbus