summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2011-10-06 13:33:51 +0000
committerMichael Haubenwallner <haubi@gentoo.org>2011-10-06 13:33:51 +0000
commit96a8ff22f19aa87eecbd970ddc4accdd8b495d01 (patch)
treed75ba6f6ebb451b4bef04fc86ffc69d15a80b57d /eclass
parentFix security bug (SAMI Subtitle Parsing Buffer Overflow) #379297 by Agostino ... (diff)
downloadgentoo-2-96a8ff22f19aa87eecbd970ddc4accdd8b495d01.tar.gz
gentoo-2-96a8ff22f19aa87eecbd970ddc4accdd8b495d01.tar.bz2
gentoo-2-96a8ff22f19aa87eecbd970ddc4accdd8b495d01.zip
do not add extra runpath when EPREFIX is empty (bug#385839)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 2ad81c047ff9..dc1363bc4f29 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.75 2011/08/29 01:28:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.76 2011/10/06 13:33:51 haubi Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -320,7 +320,9 @@ enable_cmake-utils_src_configure() {
SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
_EOF_
- if use prefix; then
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
+
+ if [[ ${EPREFIX} ]]; then
cat >> "${build_rules}" <<- _EOF_
# in Prefix we need rpath and must ensure cmake gets our default linker path
# right ... except for Darwin hosts
@@ -361,8 +363,6 @@ enable_cmake-utils_src_configure() {
local mycmakeargs_local=("${mycmakeargs[@]}")
fi
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
# Common configure parameters (overridable)
# NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable
# No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect.