mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
zlib patches from below0
SVN-Revision: 98
This commit is contained in:
parent
cc4329ca0e
commit
aec42f4bd7
@ -11,6 +11,9 @@ ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
||||
ZLIB_CFLAGS+= -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
endif
|
||||
|
||||
ZLIB_IPK_DIR=$(BUILD_DIR)/zlib-1.1.4-ipk
|
||||
ZLIB_IPK=$(BUILD_DIR)/zlib_1.1.4-1_mipsel.ipk
|
||||
|
||||
$(DL_DIR)/$(ZLIB_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(ZLIB_SITE)/$(ZLIB_SOURCE)
|
||||
|
||||
@ -61,6 +64,17 @@ zlib-headers: $(TARGET_DIR)/usr/lib/libz.a
|
||||
|
||||
zlib: uclibc $(TARGET_DIR)/lib/libz.so.1.1.4
|
||||
|
||||
$(ZLIB_IPK): uclibc $(STAGING_DIR)/lib/libz.so.1.1.4
|
||||
mkdir -p $(ZLIB_IPK_DIR)/CONTROL
|
||||
cp $(SOURCE_DIR)/zlib.control $(ZLIB_IPK_DIR)/CONTROL/control
|
||||
mkdir -p $(ZLIB_IPK_DIR)/lib
|
||||
cp -dpf $(STAGING_DIR)/lib/libz.so* $(ZLIB_IPK_DIR)/lib;
|
||||
-$(STRIP) --strip-unneeded $(ZLIB_IPK_DIR)/lib/libz.so*
|
||||
touch -c $(ZLIB_IPK_DIR)/lib/libz.so.1.1.4
|
||||
cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(ZLIB_IPK_DIR)
|
||||
|
||||
zlib-ipk: $(ZLIB_IPK)
|
||||
|
||||
zlib-source: $(DL_DIR)/$(ZLIB_SOURCE)
|
||||
|
||||
zlib-clean:
|
||||
|
10
obsolete-buildroot/sources/zlib.control
Normal file
10
obsolete-buildroot/sources/zlib.control
Normal file
@ -0,0 +1,10 @@
|
||||
Package: zlib
|
||||
Priority: optional
|
||||
Version: 1.1.4-1
|
||||
Architecture: mipsel
|
||||
Maintainer: below0
|
||||
Section: libs
|
||||
Source: Embedded in the main OpenWrt buildroot
|
||||
Description: zlib is a library implementing the 'deflate' compression system used by many programs.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user