diff --git a/src/compiler/linker.c b/src/compiler/linker.c index 2d30999a2..bc1a3742d 100644 --- a/src/compiler/linker.c +++ b/src/compiler/linker.c @@ -174,6 +174,7 @@ void platform_linker(const char *output_file, const char **files, unsigned file_ { const char **parts = NULL; vec_add(parts, "cc"); + vec_add(parts, "-lm"); vec_add(parts, "-o"); vec_add(parts, output_file); for (unsigned i = 0; i < file_count; i++)