-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dbus] Cleanup, fix pkgconfig for osx (#27425)
* Revise portfile * Revise pkgconfig patching * More cleanup * Update versions * Only dynamic library * Fix warnings * Update versions * glib unneeded unless building tests * More changes * Add opt-in x11 feature * Dynamic lib implies !staticcrt * Update versions * !uwp * Update versions
- Loading branch information
Showing
6 changed files
with
81 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1c2f6ba5b..a5f7fe222 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -723,8 +723,10 @@ add_custom_target(help-options | ||
# create pkgconfig file | ||
# | ||
if(DBUS_ENABLE_PKGCONFIG) | ||
- set(PLATFORM_LIBS pthread ${LIBRT}) | ||
- if(PKG_CONFIG_FOUND) | ||
+ if(NOT WIN32) | ||
+ set(PLATFORM_LIBS pthread ${LIBRT}) | ||
+ endif() | ||
+ if(1) | ||
# convert lists of link libraries into -lstdc++ -lm etc.. | ||
foreach(LIB ${PLATFORM_LIBS}) | ||
set(LIBDBUS_LIBS "${LIBDBUS_LIBS} -l${LIB}") | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index caef738..b878f42 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -724,11 +724,11 @@ add_custom_target(help-options | ||
# | ||
if(DBUS_ENABLE_PKGCONFIG) | ||
set(PLATFORM_LIBS pthread ${LIBRT}) | ||
- if(PKG_CONFIG_FOUND) | ||
- # convert lists of link libraries into -lstdc++ -lm etc.. | ||
- foreach(LIB ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS}) | ||
- set(LIBDBUS_LIBS "${LIBDBUS_LIBS} -l${LIB}") | ||
- endforeach() | ||
+ if(1) | ||
+ set(LIBDBUS_LIBS "${CMAKE_THREAD_LIBS_INIT}") | ||
+ if(LIBRT) | ||
+ string(APPEND LIBDBUS_LIBS " -lrt") | ||
+ endif() | ||
set(original_prefix "${CMAKE_INSTALL_PREFIX}") | ||
if(DBUS_RELOCATABLE) | ||
set(pkgconfig_prefix "\${pcfiledir}/../..") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters