summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-03-19 19:31:11 +0100
committerGuilherme Amadio <amadio@gentoo.org>2018-03-20 07:28:43 +0100
commitfe687c9d5a1b80711081933b86da2624259b7b3a (patch)
tree10bbdac1fdbcecd3ce9e32975e8c3622de58af7f /sys-devel/clang/clang-4.0.1.ebuild
parentdev-perl/Unix-Syslog: EAPI6 + tests (diff)
downloadgentoo-fe687c9d5a1b80711081933b86da2624259b7b3a.tar.gz
gentoo-fe687c9d5a1b80711081933b86da2624259b7b3a.tar.bz2
gentoo-fe687c9d5a1b80711081933b86da2624259b7b3a.zip
sys-devel/clang: fix for prefix, bug 649732
Closes: https://bugs.gentoo.org/649732 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-devel/clang/clang-4.0.1.ebuild')
-rw-r--r--sys-devel/clang/clang-4.0.1.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-devel/clang/clang-4.0.1.ebuild b/sys-devel/clang/clang-4.0.1.ebuild
index 6c37d1fd959..e3cdd3ce84a 100644
--- a/sys-devel/clang/clang-4.0.1.ebuild
+++ b/sys-devel/clang/clang-4.0.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -164,6 +164,12 @@ multilib_src_configure() {
)
fi
+ if [[ -n ${EPREFIX} ]]; then
+ mycmakeargs+=(
+ -DGCC_INSTALL_PREFIX="${EPREFIX}/usr"
+ )
+ fi
+
if tc-is-cross-compiler; then
[[ -x "/usr/bin/clang-tblgen" ]] \
|| die "/usr/bin/clang-tblgen not found or usable"