X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3ac1acb9ea70080aaaf49ae211835f057e60eefa..c9cbde917d10794c10d49e22faed8e4f5034d8fe:/obsolete-buildroot/make/zlib.mk?ds=inline diff --git a/obsolete-buildroot/make/zlib.mk b/obsolete-buildroot/make/zlib.mk index 90c6915aa..8583718c7 100644 --- a/obsolete-buildroot/make/zlib.mk +++ b/obsolete-buildroot/make/zlib.mk @@ -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) @@ -45,7 +48,7 @@ $(STAGING_DIR)/lib/libz.so.1.1.4: $(ZLIB_DIR)/libz.so.1.1.4 $(TARGET_DIR)/lib/libz.so.1.1.4: $(STAGING_DIR)/lib/libz.so.1.1.4 cp -dpf $(STAGING_DIR)/lib/libz.so* $(TARGET_DIR)/lib; - -$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libz.so* + -$(STRIP) $(TARGET_DIR)/lib/libz.so* touch -c $(TARGET_DIR)/lib/libz.so.1.1.4 $(TARGET_DIR)/usr/lib/libz.a: $(STAGING_DIR)/lib/libz.so.1.1.4 @@ -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)/openwrt/ipkg/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) $(ZLIB_IPK_DIR)/lib/libz.so* + touch -c $(ZLIB_IPK_DIR)/lib/libz.so.1.1.4 + cd $(BUILD_DIR); $(IPKG_BUILD) $(ZLIB_IPK_DIR) + +zlib-ipk: $(ZLIB_IPK) + zlib-source: $(DL_DIR)/$(ZLIB_SOURCE) zlib-clean: