From 2ddceee3339441e93f8f71109a34f9c9291227cb Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 2 Jan 2020 04:35:28 +0100 Subject: [PATCH] widelands: fix build --- srcpkgs/widelands/patches/libgl.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/widelands/patches/libgl.patch diff --git a/srcpkgs/widelands/patches/libgl.patch b/srcpkgs/widelands/patches/libgl.patch new file mode 100644 index 00000000000..1fb25d8fd47 --- /dev/null +++ b/srcpkgs/widelands/patches/libgl.patch @@ -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()