summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2012-01-13 10:02:13 +0100
committerJohannes Huber <johu@gentoo.org>2012-01-13 10:02:44 +0100
commitd1742db94e44817130ab96eed8343e96068e937d (patch)
tree08d6f9043e4dcff8baf4fd8ce05233436f11022d /dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
parenta6042a48069c13ffb3501577c06b4c06acb1a664 (diff)
downloadkde-d1742db94e44817130ab96eed8343e96068e937d.tar.gz
kde-d1742db94e44817130ab96eed8343e96068e937d.tar.bz2
kde-d1742db94e44817130ab96eed8343e96068e937d.zip
[dev-util/cmake] Revision bump. Adds new FindBoost.cmake patch which fixes bug 335108.
(Portage version: 2.2.0_alpha84/git/Linux i686, unsigned Manifest commit)
Diffstat (limited to 'dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch')
-rw-r--r--dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch b/dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
new file mode 100644
index 00000000000..6ee9b709dff
--- /dev/null
+++ b/dev-util/cmake/files/cmake-2.6.3-darwin-bundle.patch
@@ -0,0 +1,23 @@
+Don't use .so for modules on darwin/macos. Use .bundle instead.
+Patch by Heiko Przybyl
+
+--- Modules/Platform/Darwin.cmake
++++ Modules/Platform/Darwin.cmake
+@@ -23,7 +23,7 @@
+ SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
+ SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
+ SET(CMAKE_SHARED_MODULE_PREFIX "lib")
+-SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
++SET(CMAKE_SHARED_MODULE_SUFFIX ".bundle")
+ SET(CMAKE_MODULE_EXISTS 1)
+ SET(CMAKE_DL_LIBS "")
+
+@@ -45,7 +45,7 @@
+ SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
+ SET(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
+ SET(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
+-SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
++SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".bundle" ".a")
+
+ # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
+ # (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache