summaryrefslogtreecommitdiff
path: root/tools/build/Makefile.feature
diff options
context:
space:
mode:
authorCosta Shulyupin <costa.shul@redhat.com>2026-01-19 12:58:56 +0200
committerTomas Glozar <tglozar@redhat.com>2026-03-04 15:51:56 +0100
commit153e211fc74a096cbd3570ca7388ab4cbeadc6c5 (patch)
tree56c0832a983f4bf815a03d627d6ea827833ba628 /tools/build/Makefile.feature
parent4a1cec7450b7159a0ee57403f44460ac4d618b4f (diff)
tools/build: Add feature test for libcheck
Enable support for unit tests in rtla. Note that the pkg-config file for libcheck is named check.pc. Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Link: https://lore.kernel.org/r/20260119105857.797498-2-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'tools/build/Makefile.feature')
-rw-r--r--tools/build/Makefile.feature3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature
index 0b7a7c38cb88..2f192d3bf61b 100644
--- a/tools/build/Makefile.feature
+++ b/tools/build/Makefile.feature
@@ -115,6 +115,7 @@ FEATURE_TESTS_EXTRA := \
hello \
libbabeltrace \
libcapstone \
+ libcheck \
libbfd-liberty \
libbfd-liberty-z \
libopencsd \
@@ -176,6 +177,8 @@ ifneq ($(PKG_CONFIG),)
$(foreach package,$(FEATURE_PKG_CONFIG),$(call feature_pkg_config,$(package)))
endif
+FEATURE_CHECK_LDFLAGS-libcheck = -lcheck
+
# Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features.
# If in the future we need per-feature checks/flags for features not
# mentioned in this list we need to refactor this ;-).