toolchain: Add zlib

ccache needs this and usually comes with an own bundled
version but fails to build in version 3.4.1.

Since this is a small library only and we really want
ccache to use compression, we will build this indepently
and let ccache use it from the system.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-02-12 14:24:12 +00:00
parent d8ac9a162c
commit 54d5414848
2 changed files with 4 additions and 1 deletions

View File

@@ -71,15 +71,17 @@ $(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=/usr --shared
cd $(DIR_APP) && ./configure --prefix=$(PREFIX) --shared
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
ifneq "$(TOOLCHAIN)" "1"
mv -v /usr/lib/libz.so.$(VER) /lib/libz.so.$(VER)
ln -svf libz.so.$(VER) /lib/libz.so.1
ln -svf libz.so.$(VER) /lib/libz.so
rm -vf /usr/lib/libz.so.1
rm -vf /usr/lib/libz.so
endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -928,6 +928,7 @@ buildtoolchain() {
lfsmake1 gcc PASS=L
lfsmake1 binutils PASS=2
lfsmake1 gcc PASS=2
lfsmake1 zlib
lfsmake1 ccache PASS=2
lfsmake1 tcl
lfsmake1 expect