/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.0-darwin-default-install_name.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.0-darwin-default-install_name.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 31 15:49:13 2010 UTC (4 years, 7 months ago) by grobian
Branch: MAIN
Revision bump, add patch to set a default install_name on Darwin.  This is sufficient for most cases, and allows us to revert some install_name_tool hacks for cmake-based packages.
(Portage version: 2.2.00.15274-prefix/cvs/Darwin powerpc)

1 The install_name of a library can be compared to the ELF soname, setting
2 it to just the library name (libx.1.dylib) is not sufficient on Mach-O,
3 as it uses full paths. Most apps have no clue about that, so they don't
4 do something like http://www.cmake.org/pipermail/cmake/2006-June/009758.html
5
6 Provide a sane default that will allow merging most cmake-based
7 packages. If this location is not correct, Portage's QA checks will
8 catch that.
9
10 --- Source/cmTarget.cxx
11 +++ Source/cmTarget.cxx
12 @@ -974,7 +974,7 @@
13 this->Makefile->IsOn("MINGW"));
14
15 // Setup default property values.
16 - this->SetPropertyDefault("INSTALL_NAME_DIR", "");
17 + this->SetPropertyDefault("INSTALL_NAME_DIR", "${CMAKE_INSTALL_PREFIX}/lib");
18 this->SetPropertyDefault("INSTALL_RPATH", "");
19 this->SetPropertyDefault("INSTALL_RPATH_USE_LINK_PATH", "OFF");
20 this->SetPropertyDefault("SKIP_BUILD_RPATH", "OFF");

  ViewVC Help
Powered by ViewVC 1.1.20