summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/zlib/zlib.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk
index 41d063274..a67a5e830 100644
--- a/package/zlib/zlib.mk
+++ b/package/zlib/zlib.mk
@@ -18,14 +18,14 @@ $(ZLIB_DIR)/.patched: $(DL_DIR)/$(ZLIB_SOURCE)
$(CONFIG_UPDATE) $(@D)
touch $@
-ifneq ($(BR2_PREFER_STATIC_LIB),y)
-ZLIB_PIC := -fPIC
-ZLIB_SHARED := --shared
-ZLIB_TARGET := $(TARGET_DIR)/usr/lib/libz.so
-else
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
ZLIB_PIC :=
ZLIB_SHARED :=
ZLIB_TARGET := $(STAGING_DIR)/usr/lib/libz.a
+else
+ZLIB_PIC := -fPIC
+ZLIB_SHARED := --shared
+ZLIB_TARGET := $(TARGET_DIR)/usr/lib/libz.so
endif
$(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched