KDevelop: make it work (#2419)

* KDevelop: #sudo hp kdevelop

* Cleanup

* Coment in PATCH

* Comments in patchset
This commit is contained in:
miqlas
2018-04-09 18:08:24 +02:00
committed by GitHub
parent 974187ef6f
commit f3f7d39e47
3 changed files with 123 additions and 23 deletions

View File

@@ -0,0 +1,26 @@
From 6ffe77b220b5c776adb8c27157e85e13d87dbaad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Tue, 3 Apr 2018 20:08:02 +0200
Subject: Haiku supporting patches
diff --git a/kdevplatform/util/dbus_socket_transformer/CMakeLists.txt b/kdevplatform/util/dbus_socket_transformer/CMakeLists.txt
index f9ce6ac..5c36e79 100644
--- a/kdevplatform/util/dbus_socket_transformer/CMakeLists.txt
+++ b/kdevplatform/util/dbus_socket_transformer/CMakeLists.txt
@@ -15,5 +15,12 @@ if(HAVE_MSG_NOSIGNAL)
endif()
add_executable(kdev_dbus_socket_transformer main.cpp)
+
+# explicit linking to Haiku's separate libnetwork needed due to socket() usage
+# already upstreamed
+if (HAIKU)
+ target_link_libraries(kdev_dbus_socket_transformer network)
+endif ()
+
ecm_mark_nongui_executable(kdev_dbus_socket_transformer)
install(TARGETS kdev_dbus_socket_transformer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
--
2.16.2