eclass/cmake-utils.eclass: restrict rpath hack to Prefix/rpath
authorBenda Xu <heroxbd@gentoo.org>
Thu, 11 Jul 2019 17:12:33 +0000 (01:12 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Sun, 14 Jul 2019 14:18:36 +0000 (22:18 +0800)
  Prefix/standalone does not need it.

Signed-Off-By: Benda Xu <heroxbd@gentoo.org>
eclass/cmake-utils.eclass

index ea1858e9735f7031bc6a728d8dd52d6f82a24890..109b584afb39eade4d808834646ab920bb392e16 100644 (file)
@@ -612,7 +612,7 @@ cmake-utils_src_configure() {
                fi
        fi
 
-       if [[ ${EPREFIX} ]]; then
+       if use prefix-guest; then
                cat >> "${build_rules}" <<- _EOF_ || die
                        # in Prefix we need rpath and must ensure cmake gets our default linker path
                        # right ... except for Darwin hosts