public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-util/cmake/files: cmake-2.8.0-darwin-default-install_name.patch
@ 2010-01-31 15:49 Fabian Groffen (grobian)
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen (grobian) @ 2010-01-31 15:49 UTC (permalink / raw
  To: gentoo-commits

grobian     10/01/31 15:49:13

  Added:                cmake-2.8.0-darwin-default-install_name.patch
  Log:
  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)

Revision  Changes    Path
1.1                  dev-util/cmake/files/cmake-2.8.0-darwin-default-install_name.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/files/cmake-2.8.0-darwin-default-install_name.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/files/cmake-2.8.0-darwin-default-install_name.patch?rev=1.1&content-type=text/plain

Index: cmake-2.8.0-darwin-default-install_name.patch
===================================================================
The install_name of a library can be compared to the ELF soname, setting
it to just the library name (libx.1.dylib) is not sufficient on Mach-O,
as it uses full paths.  Most apps have no clue about that, so they don't
do something like http://www.cmake.org/pipermail/cmake/2006-June/009758.html

Provide a sane default that will allow merging most cmake-based
packages.  If this location is not correct, Portage's QA checks will
catch that.

--- Source/cmTarget.cxx
+++ Source/cmTarget.cxx
@@ -974,7 +974,7 @@
                        this->Makefile->IsOn("MINGW"));
 
   // Setup default property values.
-  this->SetPropertyDefault("INSTALL_NAME_DIR", "");
+  this->SetPropertyDefault("INSTALL_NAME_DIR", "${CMAKE_INSTALL_PREFIX}/lib");
   this->SetPropertyDefault("INSTALL_RPATH", "");
   this->SetPropertyDefault("INSTALL_RPATH_USE_LINK_PATH", "OFF");
   this->SetPropertyDefault("SKIP_BUILD_RPATH", "OFF");






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-31 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-31 15:49 [gentoo-commits] gentoo-x86 commit in dev-util/cmake/files: cmake-2.8.0-darwin-default-install_name.patch Fabian Groffen (grobian)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox