[3/6] zlib-ng: Install the compat library into /lib again
Commit Message
This is just to remain compatible with the older version which was also
installed in /lib.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/rootfiles/common/zlib-ng | 6 +++---
lfs/zlib-ng | 8 ++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
@@ -1,3 +1,6 @@
+#lib/libz.so
+lib/libz.so.1
+lib/libz.so.1.3.1.zlib-ng
#usr/include/zconf-ng.h
#usr/include/zconf.h
#usr/include/zlib-ng.h
@@ -9,9 +12,6 @@
usr/lib/libz-ng.so.2
usr/lib/libz-ng.so.2.2.3
#usr/lib/libz.a
-#usr/lib/libz.so
-usr/lib/libz.so.1
-usr/lib/libz.so.1.3.1.zlib-ng
#usr/lib/pkgconfig
#usr/lib/pkgconfig/zlib-ng.pc
#usr/lib/pkgconfig/zlib.pc
@@ -94,5 +94,13 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP)/build && make install
cd $(DIR_APP)/compat && make install
+ifneq "$(TOOLCHAIN)" "1"
+ mv -v /usr/lib/libz.so.1.3.1.zlib-ng /lib/libz.so.1.3.1.zlib-ng
+ ln -svf libz.so.1.3.1.zlib-ng /lib/libz.so.1
+ ln -svf libz.so.1.3.1.zlib-ng /lib/libz.so
+ rm -vf /usr/lib/libz.so.1
+ rm -vf /usr/lib/libz.so
+endif
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)