/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.10-darwin-bundle.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.10-darwin-bundle.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Nov 18 13:40:15 2012 UTC (2 years, 1 month ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Version bump, remove old.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)

1 Don't use .so for modules on darwin/macos. Use .bundle instead.
2 Patch by Heiko Przybyl
3
4 --- Modules/Platform/Darwin.cmake
5 +++ Modules/Platform/Darwin.cmake
6 @@ -26,7 +26,7 @@
7 set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
8 set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
9 set(CMAKE_SHARED_MODULE_PREFIX "lib")
10 -set(CMAKE_SHARED_MODULE_SUFFIX ".so")
11 +set(CMAKE_SHARED_MODULE_SUFFIX ".bundle")
12 set(CMAKE_MODULE_EXISTS 1)
13 set(CMAKE_DL_LIBS "")
14
15 @@ -48,7 +48,7 @@
16 set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names")
17 set(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
18 set(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
19 -set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
20 +set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".bundle" ".a")
21
22 # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
23 # (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache

  ViewVC Help
Powered by ViewVC 1.1.20