From 7bbff77b0cfeaf0adeca24a907385cd3cb5665d9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 28 Apr 2025 14:29:15 -0400 Subject: Fix LDFLAGS for check-libs --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 84c0f134..4c947370 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,7 @@ check-c-compiler: || { printf '\033[31;1m%s\033[m\n' "You have set your DEFAULT_C_COMPILER to $(DEFAULT_C_COMPILER) in your config.mk, but I can't run it!"; exit 1; } check-libs: check-c-compiler - @echo 'int main() { return 0; }' | $(DEFAULT_C_COMPILER) $(LDLIBS) -x c - -o /dev/null 2>/dev/null >/dev/null \ + @echo 'int main() { return 0; }' | $(DEFAULT_C_COMPILER) $(LDFLAGS) $(LDLIBS) -x c - -o /dev/null 2>/dev/null >/dev/null \ || { printf '\033[31;1m%s\033[m\n' "I expected to find the following libraries on your system, but I can't find them: $(LDLIBS)"; exit 1; } build/bin/tomo: $(STDLIB_OBJS) $(COMPILER_OBJS) -- cgit v1.2.3