aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-24 09:05:56 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-24 09:05:56 +0200
commit8810e260f591a780feb251fa5dcaa195b2dcc366 (patch)
tree8893309ee1d041614cbbce2a66a136c804797a0b /make.c
parent398081f8960d34b1a9c28f9d2736f15a80d02c85 (diff)
Try to handle floating point numbers better
Diffstat (limited to 'make.c')
-rw-r--r--make.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/make.c b/make.c
index c57362d..f96a039 100644
--- a/make.c
+++ b/make.c
@@ -300,7 +300,7 @@ ld(void)
if (!rflag && !Sflag)
strspushl(&cmd, "-fsanitize=address,undefined");
llvmquery(&cmd, LLVM_LDFLAGS | LLVM_LIBS);
- strspushl(&cmd, "-o", TARGET);
+ strspushl(&cmd, "-lm", "-o", TARGET);
assert(glob("src/*.o", 0, globerr, &g) == 0);
for (size_t i = 0; i < g.gl_pathc; i++) {