fix: fminf and other <math.h> from libm not found.

The `-lm` linker flag was applied preceding the libraries, but it
should've been succeding.
This commit is contained in:
2025-09-15 09:55:48 +02:00
parent 0f6a2579b9
commit d340bbe40b

View File

@@ -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.