From 60b5eee76edfa153ef118d2788c74ac8da1497a0 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 4 Aug 2008 19:07:18 +0000 Subject: package: global largefile CFLAGS handling --- package/zlib/zlib.mk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'package/zlib') diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk index a9ff342b2..904c20b6a 100644 --- a/package/zlib/zlib.mk +++ b/package/zlib/zlib.mk @@ -8,10 +8,6 @@ ZLIB_SOURCE:=zlib-$(ZLIB_VERSION).tar.bz2 ZLIB_CAT:=$(BZCAT) ZLIB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libpng ZLIB_DIR:=$(BUILD_DIR)/zlib-$(ZLIB_VERSION) -ZLIB_CFLAGS:=-fPIC -ifeq ($(BR2_LARGEFILE),y) -ZLIB_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -endif $(DL_DIR)/$(ZLIB_SOURCE): $(WGET) -P $(DL_DIR) $(ZLIB_SITE)/$(ZLIB_SOURCE) @@ -26,7 +22,7 @@ $(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched (cd $(ZLIB_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_ARGS) \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(ZLIB_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) -fPIC" \ ./configure \ --shared \ --prefix=/usr \ -- cgit v1.2.3