When building unit tests, LIBCHECK_LIBS was already used to find
the corresponding library. Add LIBCHECK_CFLAGS to find the
matching headers.

Signed-off-by: Earl Chew <[email protected]>
---
 tools/tests/Makefile.am | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/tests/Makefile.am b/tools/tests/Makefile.am
index 71f7159..b0c0242 100644
--- a/tools/tests/Makefile.am
+++ b/tools/tests/Makefile.am
@@ -70,26 +70,26 @@ CLEANFILES += $(FAT_TESTLIB)
 
 SRC_TEST_COMMON=test_main.c
 
-test_bgenv_init_retval_CFLAGS = $(AM_CFLAGS)
+test_bgenv_init_retval_CFLAGS = $(LIBCHECK_CFLAGS) $(AM_CFLAGS)
 test_bgenv_init_retval_SOURCES = test_bgenv_init_retval.c $(SRC_TEST_COMMON)
 test_bgenv_init_retval_LDADD = $(FAT_TESTLIB) $(LIBCHECK_LIBS)
 
-test_probe_config_partitions_CFLAGS = $(AM_CFLAGS)
+test_probe_config_partitions_CFLAGS = $(LIBCHECK_CFLAGS) $(AM_CFLAGS)
 test_probe_config_partitions_SOURCES = test_probe_config_partitions.c \
                                       fake_devices.c \
                                       $(SRC_TEST_COMMON)
 test_probe_config_partitions_LDADD = $(FAT_TESTLIB) $(LIBCHECK_LIBS)
 
-test_probe_config_file_CFLAGS = $(AM_CFLAGS) -Wl,--wrap=probe_config_file
+test_probe_config_file_CFLAGS = $(LIBCHECK_CFLAGS) $(AM_CFLAGS) 
-Wl,--wrap=probe_config_file
 test_probe_config_file_SOURCES = test_probe_config_file.c fake_devices.c \
                                 $(SRC_TEST_COMMON)
 test_probe_config_file_LDADD = $(FAT_TESTLIB) $(LIBCHECK_LIBS)
 
-test_ebgenv_api_internal_CFLAGS = $(AM_CFLAGS)
+test_ebgenv_api_internal_CFLAGS = $(LIBCHECK_CFLAGS) $(AM_CFLAGS)
 test_ebgenv_api_internal_SOURCES = test_ebgenv_api_internal.c 
$(SRC_TEST_COMMON)
 test_ebgenv_api_internal_LDADD = $(FAT_TESTLIB) $(LIBCHECK_LIBS)
 
-test_ebgenv_api_CFLAGS = $(AM_CFLAGS) -Wl,--wrap=bgenv_set -Wl,--wrap=bgenv_get
+test_ebgenv_api_CFLAGS = $(LIBCHECK_CFLAGS) $(AM_CFLAGS) -Wl,--wrap=bgenv_set 
-Wl,--wrap=bgenv_get
 test_ebgenv_api_SOURCES = test_ebgenv_api.c $(SRC_TEST_COMMON)
 test_ebgenv_api_LDADD = $(FAT_TESTLIB) $(LIBCHECK_LIBS)
 
-- 
2.39.1

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20230708155609.2889570-1-earl_chew%40yahoo.com.

Reply via email to