genode/repos/libports/lib/import/import-ffi.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

18 lines
399 B
Makefile

FFI_DIR := $(call select_from_ports,ffi)
ifeq ($(filter-out $(SPECS),x86_32),)
INC_DIR += $(FFI_DIR)/include/ffi/spec/x86_32
endif
ifeq ($(filter-out $(SPECS),x86_64),)
INC_DIR += $(FFI_DIR)/include/ffi/spec/x86_64
endif
ifeq ($(filter-out $(SPECS),arm),)
INC_DIR += $(FFI_DIR)/include/ffi/spec/arm
endif
ifeq ($(filter-out $(SPECS),arm_64),)
INC_DIR += $(FFI_DIR)/include/ffi/spec/arm_64
endif