mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
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:
4
lfs/zlib
4
lfs/zlib
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user