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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jan 11 01:25:07 2010 UTC (4 years, 11 months ago) by abcd
Branch: MAIN
Add prefix keywords, patches
(Portage version: -svn/cvs/Linux i686)

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 @@ -23,7 +23,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 @@ -45,7 +45,7 @@
16 SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -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