use := instead of = for variables and make sure zlib builds with target cflags
authorMike Frysinger <vapier@gentoo.org>
Sat, 29 Oct 2005 07:16:38 +0000 (07:16 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 29 Oct 2005 07:16:38 +0000 (07:16 -0000)
package/zlib/zlib.mk

index 32dc3ca2fc0330f4b50daaec8da595d510466cf0..2d40d23309deedd339efd886cd4d9bf82f995056 100644 (file)
@@ -3,13 +3,13 @@
 # zlib
 #
 #############################################################
-ZLIB_VER=1.2.3
-ZLIB_SOURCE=zlib-$(ZLIB_VER).tar.bz2
-ZLIB_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libpng
-ZLIB_DIR=$(BUILD_DIR)/zlib-$(ZLIB_VER)
-ZLIB_CFLAGS$(TARGET_CFLAGS) -fPIC
+ZLIB_VER:=1.2.3
+ZLIB_SOURCE:=zlib-$(ZLIB_VER).tar.bz2
+ZLIB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libpng
+ZLIB_DIR:=$(BUILD_DIR)/zlib-$(ZLIB_VER)
+ZLIB_CFLAGS:=$(TARGET_CFLAGS) -fPIC
 ifeq ($(BR2_LARGEFILE),y)
-ZLIB_CFLAGS+= -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ZLIB_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 endif
 
 $(DL_DIR)/$(ZLIB_SOURCE):
@@ -23,6 +23,7 @@ $(ZLIB_DIR)/.source: $(DL_DIR)/$(ZLIB_SOURCE)
 $(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.source
        (cd $(ZLIB_DIR); \
                $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(ZLIB_CFLAGS)" \
                ./configure \
                --shared \
                --prefix=/usr \