From 9f7d1fb57c82098a105dbd19a81fecbcab323e78 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 15 Sep 2025 09:55:48 +0200 Subject: [PATCH] fix: `fminf` and other from `libm` not found. The `-lm` linker flag was applied preceding the libraries, but it should've been succeding. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c481ab2..1bfc069 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ LDFLAGS += -fsanitize=address -ftrapv endif CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive LDFLAGS += -Llib/obj/glfw/src -Llib/obj/libarchive/libarchive -LDLIBS += -lm -lglfw3 -larchive +LDLIBS += -lglfw3 -larchive -lm # detect if we're compiling on Windows, meaning # a lot of things considered "standard" are unavailable.