Skip to content

Commit

Permalink
Fix opengl and glfw link for msys (#6075)
Browse files Browse the repository at this point in the history
* opengl: fix link for msys

* glfw: fix link for msys
  • Loading branch information
RimuruChan authored Dec 28, 2024
1 parent a640d24 commit aa72d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/g/glfw/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion packages/o/opengl/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa72d47

Please sign in to comment.