summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/test.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/test.mk b/include/test.mk
index 343053d3..1a4fc220 100644
--- a/include/test.mk
+++ b/include/test.mk
@@ -46,6 +46,10 @@ CFLAGS = $(OPTIMIZATIONS) -std=gnu11 \
-DSHIM_UNIT_TEST \
"-DDEFAULT_DEBUG_PRINT_STATE=$(DEBUG_PRINTS)"
+# On some systems (e.g. Arch Linux), limits.h is in the "include-fixed" instead
+# of the "include" directory
+CFLAGS += -isystem $(shell $(CC) $(ARCH_CFLAGS) -print-file-name=include-fixed)
+
export CFLAGS_LTO CFLAGS_GCOV
libefi-test.a :