Skip to content

Commit

Permalink
sys-devel/llvm: make 3.4.2 work post-Prefix bootstrap too
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
grobian committed Sep 10, 2016
1 parent cd9577c commit 8ff8ef4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sys-devel/llvm/llvm-3.4.2-r100.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ src_install() {

if ! use clang; then
rm "${WORKDIR}"/${PN}-3.4-manpages/clang.1 || die
else
for tool in clang{,++}{,-${PV}} ; do
dosym /usr/bin/${tool} /usr/bin/${CHOST}-${tool}
done
fi
doman "${WORKDIR}"/${PN}-3.4-manpages/*.1

Expand All @@ -200,7 +204,7 @@ src_install() {
eval $(grep PACKAGE_VERSION= configure)
[[ -n ${PACKAGE_VERSION} ]] && libpv=${PACKAGE_VERSION}
libpvminor=${libpv%.[0-9]*}
for lib in lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib LLVMHello.dylib clang/${libpv}/lib/darwin/libclang_rt.asan_{osx,iossim}_dynamic.dylib; do
for lib in lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib LLVMHello.dylib BugpointPasses.dylib clang/${libpv}/lib/darwin/libclang_rt.asan_{osx,iossim}_dynamic.dylib; do
# libEnhancedDisassembly is Darwin10 only, so non-fatal
# + omit clang libs if not enabled
[[ -f ${ED}/usr/lib/${lib} ]] || continue
Expand Down

0 comments on commit 8ff8ef4

Please sign in to comment.