yolobs-studio/debian/patches/0005-Link-with-xcb-and-X-libraries-to-fix-underlinking.patch

43 lines
1 KiB
Diff
Raw Normal View History

2017-04-19 20:48:37 +00:00
From: Sebastian Ramacher <sramacher@debian.org>
Date: Wed, 19 Apr 2017 23:02:17 +0200
Subject: Link with xcb and X libraries to fix underlinking
---
libobs/CMakeLists.txt | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
2018-02-19 20:07:10 +00:00
index 83dcb75..56401fe 100644
2017-04-19 20:48:37 +00:00
--- a/libobs/CMakeLists.txt
+++ b/libobs/CMakeLists.txt
2018-02-19 20:07:10 +00:00
@@ -25,7 +25,8 @@ if(UNIX)
endif()
2017-04-19 20:48:37 +00:00
find_package(DBus QUIET)
if (NOT APPLE)
- find_package(X11_XCB REQUIRED)
+ find_package(XCB COMPONENTS XCB REQUIRED)
+ find_package(X11 REQUIRED)
endif()
else()
set(HAVE_DBUS "0")
2018-02-19 20:07:10 +00:00
@@ -192,12 +193,17 @@ elseif(UNIX)
2017-04-19 20:48:37 +00:00
endif()
include_directories(
- ${X11_XCB_INCLUDE_DIRS})
+ ${XCB_INCLUDE_DIRS}
+ ${X11_XCB_INCLUDE_DIRS}
+ ${X11_X11_INCLUDE_DIRS})
add_definitions(
+ ${XCB_DEFINITIONS}
${X11_XCB_DEFINITIONS})
set(libobs_PLATFORM_DEPS
${libobs_PLATFORM_DEPS}
- ${X11_XCB_LIBRARIES})
+ ${XCB_LIBRARIES}
+ ${X11_XCB_LIBRARIES}
+ ${X11_X11_LIB})
2018-02-19 20:07:10 +00:00
if(HAVE_PULSEAUDIO)
set(libobs_PLATFORM_DEPS