genode/repos/libports/lib/mk/libpcg_random.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

21 lines
496 B
Makefile

include $(REP_DIR)/lib/import/import-libpcg_random.mk
PCG_SRC_DIR := $(call select_from_ports,pcg-c)/src/lib/pcg-c/src
CC_OPT += -std=c99
pcg_srcs = $(notdir $(wildcard $(PCG_SRC_DIR)/*-$(1).c))
SRC_C += $(call pcg_srcs,8)
SRC_C += $(call pcg_srcs,16)
SRC_C += $(call pcg_srcs,32)
SRC_C += $(call pcg_srcs,64)
# 128bit state generators only available on 64bit platforms
ifeq ($(filter-out $(SPECS),64bit),)
SRC_C += $(call pcg_srcs,128)
endif
vpath %.c $(PCG_SRC_DIR)
CC_CXX_WARN_STRICT =