Skip to content

Commit 462ca4e

Browse files
committed
zlib: use default Build/Configure rule
Signed-off-by: Stijn Tintel <[email protected]>
1 parent b3cba68 commit 462ca4e

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

package/libs/zlib/Makefile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,15 @@ define Package/zlib-dev/description
4545
This package includes the development support files.
4646
endef
4747

48-
define Build/Configure
49-
(cd $(PKG_BUILD_DIR); \
50-
$(TARGET_CONFIGURE_OPTS) \
51-
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
52-
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
53-
./configure \
54-
--prefix=/usr \
55-
--shared \
56-
--uname=Linux \
57-
);
58-
endef
48+
CONFIGURE_VARS := \
49+
$(TARGET_CONFIGURE_OPTS) \
50+
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
51+
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
52+
53+
CONFIGURE_ARGS := \
54+
--prefix=/usr \
55+
--shared \
56+
--uname=Linux \
5957

6058
define Build/Compile
6159
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \

0 commit comments

Comments
 (0)