mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
widelands: fix build
This commit is contained in:
parent
bf3adecb8f
commit
2ddceee333
1 changed files with 13 additions and 0 deletions
13
srcpkgs/widelands/patches/libgl.patch
Normal file
13
srcpkgs/widelands/patches/libgl.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
This fixes linker errors with glvnd.
|
||||||
|
|
||||||
|
--- CMakeLists.txt
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -181,7 +181,7 @@ endif(OPTION_ASAN)
|
||||||
|
|
||||||
|
# This is set to avoid linker errors when using GLVND-libs on Linux
|
||||||
|
if("${OpenGL_GL_PREFERENCE}" STREQUAL "GLVND")
|
||||||
|
- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGL")
|
||||||
|
+ link_libraries("GL")
|
||||||
|
add_compile_definitions(WL_USE_GLVND)
|
||||||
|
message(STATUS "Adding linker flags for GLVND.")
|
||||||
|
endif()
|
Loading…
Add table
Reference in a new issue