aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-28 14:29:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-28 14:29:15 -0400
commit7bbff77b0cfeaf0adeca24a907385cd3cb5665d9 (patch)
tree3eedabb908685f30eacb80828905e607fa95f886 /Makefile
parentc3f89e001c27029b13315a5b2f6b2ffd277292b0 (diff)
Fix LDFLAGS for check-libs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)