genode/repos/libports/lib/mk/zlib.mk
Johannes Schlatow 5e4e634625 libs: use select_from_ports in eager assignments
If `select_from_ports` is evaluated lazily, we might miss a port during
the dependency check. A way to prevent this is to use the `:=` operator.

Fixes genodelabs/genode#4618
2022-11-17 08:00:34 +01:00

15 lines
385 B
Makefile

ZLIB_DIR := $(call select_from_ports,zlib)/src/lib/zlib
LIBS += libc
INC_DIR += $(ZLIB_DIR)
SRC_C = adler32.c compress.c crc32.c deflate.c gzclose.c \
gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c \
inftrees.c trees.c uncompr.c zutil.c
CC_WARN =
CC_OPT += -DZ_HAVE_UNISTD_H
vpath %.c $(ZLIB_DIR)
SHARED_LIB = yes
CC_CXX_WARN_STRICT =