zlib: always build host version dynamically
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 20 Jul 2011 21:51:17 +0000 (23:51 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 20 Jul 2011 21:51:17 +0000 (23:51 +0200)
Host libraries should always be built using dynamic linking, rather than
static if BR2_PREFER_STATIC_LIB is enabled, as that then breaks dependent
libraries expecting a shared library.

Reported-by: Andy Kennedy <andy.kennedy@adtran.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/zlib/zlib.mk

index dcd2548da8358daed0f6db0515e44936eb584c2f..18e7068ff2c8b893e431bdd4bbd2bb1f4f1fa059 100644 (file)
@@ -31,9 +31,7 @@ define HOST_ZLIB_CONFIGURE_CMDS
        (cd $(@D); rm -rf config.cache; \
                $(HOST_CONFIGURE_ARGS) \
                $(HOST_CONFIGURE_OPTS) \
-               CFLAGS="$(ZLIB_PIC)" \
                ./configure \
-               $(ZLIB_SHARED) \
                --prefix="$(HOST_DIR)/usr" \
                --sysconfdir="$(HOST_DIR)/etc" \
        )