Lines 18-27
Link Here
|
18 |
LICENSE="UoI-NCSA" |
18 |
LICENSE="UoI-NCSA" |
19 |
SLOT="0" |
19 |
SLOT="0" |
20 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
20 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
21 |
IUSE="alltargets debug +static-analyzer +system-cxx-headers test" |
21 |
IUSE="alltargets debug gold +static-analyzer +system-cxx-headers test" |
22 |
|
22 |
|
23 |
# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html |
23 |
# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html |
24 |
DEPEND="static-analyzer? ( dev-lang/perl )" |
24 |
DEPEND="static-analyzer? ( dev-lang/perl ) |
|
|
25 |
gold? ( >=sys-devel/binutils-2.21 )" |
25 |
RDEPEND="~sys-devel/llvm-${PV}[alltargets=]" |
26 |
RDEPEND="~sys-devel/llvm-${PV}[alltargets=]" |
26 |
|
27 |
|
27 |
S="${WORKDIR}/llvm-${PV}" |
28 |
S="${WORKDIR}/llvm-${PV}" |
Lines 64-69
Link Here
|
64 |
einfo "Fixing rpath" |
65 |
einfo "Fixing rpath" |
65 |
sed -e 's,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),$(RPATH) -Wl\,'"${EPREFIX}"/usr/$(get_libdir)/llvm, \ |
66 |
sed -e 's,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),$(RPATH) -Wl\,'"${EPREFIX}"/usr/$(get_libdir)/llvm, \ |
66 |
-i Makefile.rules || die "rpath sed failed" |
67 |
-i Makefile.rules || die "rpath sed failed" |
|
|
68 |
|
69 |
if use gold; then |
70 |
einfo "Setting the built-in linker to ld.gold" |
71 |
sed -e 's|/bin/ld|/bin/ld.gold|g' \ |
72 |
-e 's|GetProgramPath("ld")|GetProgramPath("ld.gold")|g' \ |
73 |
-i tools/clang/lib/Driver/ToolChains.cpp \ |
74 |
|| die "ToolChains.cpp sed failed" |
75 |
fi |
67 |
} |
76 |
} |
68 |
|
77 |
|
69 |
src_configure() { |
78 |
src_configure() { |