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 2186ec2942
commit 9f7d1fb57c

View File

@@ -24,7 +24,7 @@ LDFLAGS += -fsanitize=address -ftrapv
endif endif
CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive CPPFLAGS += -Iinclude -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/libarchive
LDFLAGS += -Llib/obj/glfw/src -Llib/obj/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 # detect if we're compiling on Windows, meaning
# a lot of things considered "standard" are unavailable. # a lot of things considered "standard" are unavailable.