Commit: 24c7a7db15387ff236b7a7b3a2da18e7156869f0
Parent: 1e4b87d9f0a5a9b9c6fd185abcd0473fdd81d1dd
Author: Randy Palamar
Date: Wed, 31 Jul 2024 11:55:51 -0600
link appropriate system libs on win32 (mingw64)
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/build.sh b/build.sh
@@ -7,6 +7,10 @@ debug=${DEBUG}
cc=${CC:-cc}
system_raylib=${USE_SYSTEM_RAYLIB:-$debug}
+case $(uname -s) in
+MINGW64*) ldflags="$ldflags -lgdi32 -lwinmm" ;;
+esac
+
# NOTE: clones and builds a static raylib if system lib is not requested
# NOTE: this requires cmake
if [ "$system_raylib" ]; then