Commit 72a119c8 authored by Michael Roth's avatar Michael Roth Committed by Peter Korsgaard
Browse files

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: default avatarMichael Roth <mroth@nessie.de>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 4d153cff
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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