瀏覽代碼

zlib: use default Build/Configure rule

Signed-off-by: Stijn Tintel <[email protected]>
Stijn Tintel 8 年之前
父節點
當前提交
462ca4e059
共有 1 個文件被更改,包括 9 次插入11 次删除
  1. 9 11
      package/libs/zlib/Makefile

+ 9 - 11
package/libs/zlib/Makefile

@@ -45,17 +45,15 @@ define Package/zlib-dev/description
  This package includes the development support files.
 endef
 
-define Build/Configure
-	(cd $(PKG_BUILD_DIR); \
-		$(TARGET_CONFIGURE_OPTS) \
-		LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
-		CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
-		./configure \
-			--prefix=/usr \
-			--shared \
-			--uname=Linux \
-	);
-endef
+CONFIGURE_VARS := \
+	$(TARGET_CONFIGURE_OPTS) \
+	LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
+	CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
+
+CONFIGURE_ARGS := \
+	--prefix=/usr \
+	--shared \
+	--uname=Linux \
 
 define Build/Compile
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \