From 36ee7f396de4beb2ed58af19626f11ab661d15e7 Mon Sep 17 00:00:00 2001 From: star9029 Date: Wed, 13 Nov 2024 17:12:05 +0800 Subject: [PATCH] fix glXGetProcAddress --- packages/s/soil2/xmake.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/s/soil2/xmake.lua b/packages/s/soil2/xmake.lua index 265a83b42..e7f699c42 100644 --- a/packages/s/soil2/xmake.lua +++ b/packages/s/soil2/xmake.lua @@ -11,7 +11,10 @@ package("soil2") end add_deps("cmake") - add_deps("opengl") + add_deps("opengl", {optional = true}) + if is_plat("linux") then + add_deps("libx11", "libxrandr", "libxrender", "libxinerama", "libxcursor", "libxi", "libxfixes", "libxext") + end if on_check then on_check("windows", function (package) @@ -26,7 +29,7 @@ package("soil2") end) end - on_install("!android and !wasm and !cross and !iphoneos", function (package) + on_install("!android and !wasm and !cross and !iphoneos and !bsd", function (package) io.replace("CMakeLists.txt", "$<$:-fPIC>", "", {plain = true}) io.replace("CMakeLists.txt", "$<$:-fPIC>", "", {plain = true})