fix glXGetProcAddress

pull/5749/head
star9029 2 weeks ago
parent 05724ea4f0
commit 36ee7f396d
  1. 7
      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", "$<$<CXX_COMPILER_ID:Clang>:-fPIC>", "", {plain = true})
io.replace("CMakeLists.txt", "$<$<CXX_COMPILER_ID:GNU>:-fPIC>", "", {plain = true})

Loading…
Cancel
Save