From aa72d472b106727cf9cd823f1ce675e0c4c19ff5 Mon Sep 17 00:00:00 2001 From: RimuruChan Date: Sat, 28 Dec 2024 18:35:06 +0800 Subject: [PATCH] Fix opengl and glfw link for msys (#6075) * opengl: fix link for msys * glfw: fix link for msys --- packages/g/glfw/xmake.lua | 2 +- packages/o/opengl/xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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