diff --git a/packages/g/glfw/xmake.lua b/packages/g/glfw/xmake.lua index 9a5efd7df6b..33a61387d80 100644 --- a/packages/g/glfw/xmake.lua +++ b/packages/g/glfw/xmake.lua @@ -29,7 +29,7 @@ package("glfw") add_frameworks("Cocoa", "IOKit") elseif is_plat("windows") then add_syslinks("user32", "shell32", "gdi32") - elseif is_plat("mingw") then + elseif is_plat("mingw", "msys") then add_syslinks("gdi32") elseif is_plat("linux") then add_syslinks("dl", "pthread") diff --git a/packages/o/opengl/xmake.lua b/packages/o/opengl/xmake.lua index 42cb7b23f2c..91f104bd01b 100644 --- a/packages/o/opengl/xmake.lua +++ b/packages/o/opengl/xmake.lua @@ -7,7 +7,7 @@ package("opengl") -- we always get it from compiler toolchain if package:is_plat("macosx") then return {frameworks = "OpenGL", defines = "GL_SILENCE_DEPRECATION"} - elseif package:is_plat("windows", "mingw") then + elseif package:is_plat("windows", "mingw", "msys") then return {links = "opengl32"} end if opt.system then