diff options
Diffstat (limited to 'package/zlib/zlib.mk')
-rw-r--r-- | package/zlib/zlib.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk index 4414b68c7..8456274ea 100644 --- a/package/zlib/zlib.mk +++ b/package/zlib/zlib.mk @@ -8,7 +8,7 @@ ZLIB_SOURCE:=zlib-$(ZLIB_VER).tar.bz2 ZLIB_CAT:=$(BZCAT) ZLIB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libpng ZLIB_DIR:=$(BUILD_DIR)/zlib-$(ZLIB_VER) -ZLIB_CFLAGS:=$(TARGET_CFLAGS) -fPIC +ZLIB_CFLAGS:=-fPIC ifeq ($(BR2_LARGEFILE),y) ZLIB_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 endif @@ -25,8 +25,7 @@ $(ZLIB_DIR)/.patched: $(DL_DIR)/$(ZLIB_SOURCE) $(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched (cd $(ZLIB_DIR); rm -rf config.cache ; \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) $(ZLIB_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ + CFLAGS="$(ZLIB_CFLAGS)" \ ./configure \ --shared \ --prefix=/usr \ |