mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
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 <mroth@nessie.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
4d153cff9d
commit
72a119c84b
@ -18,14 +18,14 @@ $(ZLIB_DIR)/.patched: $(DL_DIR)/$(ZLIB_SOURCE)
|
|||||||
$(CONFIG_UPDATE) $(@D)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
ZLIB_PIC := -fPIC
|
|
||||||
ZLIB_SHARED := --shared
|
|
||||||
ZLIB_TARGET := $(TARGET_DIR)/usr/lib/libz.so
|
|
||||||
else
|
|
||||||
ZLIB_PIC :=
|
ZLIB_PIC :=
|
||||||
ZLIB_SHARED :=
|
ZLIB_SHARED :=
|
||||||
ZLIB_TARGET := $(STAGING_DIR)/usr/lib/libz.a
|
ZLIB_TARGET := $(STAGING_DIR)/usr/lib/libz.a
|
||||||
|
else
|
||||||
|
ZLIB_PIC := -fPIC
|
||||||
|
ZLIB_SHARED := --shared
|
||||||
|
ZLIB_TARGET := $(TARGET_DIR)/usr/lib/libz.so
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched
|
$(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched
|
||||||
|
Loading…
x
Reference in New Issue
Block a user