From: Michael Roth Date: Tue, 29 Sep 2009 22:36:03 +0000 (+0200) Subject: zlib: Replace negative logic in Makefile with positive X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72a119c84be19c8d3d792d7476644e71892ef377;p=buildroot.git zlib: Replace negative logic in Makefile with positive Positive logic is easier to read and understand than something like 'if not option=yes then foo else bar'. Signed-off-by: Michael Roth Signed-off-by: Peter Korsgaard --- diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk index 41d0632742..a67a5e830f 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