diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-12-30 14:23:01 +0000 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-12-30 14:23:01 +0000 |
commit | 812a8931f06834daaef825628d68eb9bf6ae3d95 (patch) | |
tree | 6d1a4744bfcd0bca30179bf48b1e767f5251f91a /eclass | |
parent | add jemalloc to tree (diff) | |
download | gentoo-2-812a8931f06834daaef825628d68eb9bf6ae3d95.tar.gz gentoo-2-812a8931f06834daaef825628d68eb9bf6ae3d95.tar.bz2 gentoo-2-812a8931f06834daaef825628d68eb9bf6ae3d95.zip |
Add patch for OS X, written by Mike Lewis, bug 298121
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index f22c3fa77fee..58c0c0298fd1 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.61 2010/12/16 14:36:55 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.62 2010/12/30 14:23:01 tampakrap Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -309,6 +309,17 @@ enable_cmake-utils_src_configure() { SET (CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE) SET (CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH "${EPREFIX}/usr/${CHOST}/lib/gcc;${EPREFIX}/usr/${CHOST}/lib;${EPREFIX}/usr/$(get_libdir);${EPREFIX}/$(get_libdir)" CACHE STRING "" FORCE) + + ELSE () + + SET(CMAKE_PREFIX_PATH "${EPREFIX}${PREFIX:-/usr}" CACHE STRING ""FORCE) + SET(CMAKE_SKIP_BUILD_RPATH OFF CACHE BOOL "" FORCE) + SET(CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE) + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE CACHE BOOL "" FORCE) + SET(CMAKE_INSTALL_RPATH ${EPREFIX}${PREFIX:-/usr}/lib;${EPREFIX}/usr/${CHOST}/lib/gcc;${EPREFIX}/usr/${CHOST}/lib;${EPREFIX}/usr/$(get_libdir);${EPREFIX}/$(get_libdir)"CACHE STRING "" FORCE) + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "" FORCE) + SET(CMAKE_INSTALL_NAME_DIR "${EPREFIX}${PREFIX:-/usr}/lib" CACHE STRING "" FORCE) + ENDIF (NOT APPLE) _EOF_ fi |