bzip2: respect LDFLAGS 1174/head
authorAlexander Ryzhov <github@ryzhov-al.ru>
Thu, 23 Apr 2015 09:26:57 +0000 (09:26 +0000)
committerAlexander Ryzhov <github@ryzhov-al.ru>
Thu, 23 Apr 2015 09:26:57 +0000 (09:26 +0000)
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
utils/bzip2/Makefile

index bf5bcf82275c31cd5ec39a8706b82fa36c921fd9..493ccc9317fe53c811d4232fe76f44f7dbc94028 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bzip2
 PKG_VERSION:=1.0.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
@@ -52,13 +52,15 @@ define Package/bzip2/description
        data compressor. This package provides the binary.
 endef
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += \
+       $(FPIC) \
+       $(TARGET_LDFLAGS)
+
 CONFIGURE_ARGS += --prefix=/usr
 
 MAKE_FLAGS += \
        -f Makefile-libbz2_so \
        CFLAGS="$(TARGET_CFLAGS)" \
-       LDFLAGS="$(TARGET_LDLAGS)" \
        all
 
 define Build/InstallDev