diff options
Diffstat (limited to 'sys-devel/llvm/llvm-9999.ebuild')
-rw-r--r-- | sys-devel/llvm/llvm-9999.ebuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 325a857ef1d6..1d0a6e61a795 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -30,7 +30,7 @@ COMMON_DEPEND=" dev-lang/perl:* ${PYTHON_DEPS} ) - xml? ( dev-libs/libxml2:2= ) + xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] ) ) gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] ) @@ -196,9 +196,6 @@ src_prepare() { find "${S}"/projects/compiler-rt/lib/builtins -type f -name \*.S -exec sed \ -e '$a\\n#if defined(__linux__) && defined(__ELF__)\n.section .note.GNU-stack,"",%progbits\n#endif' \ -i {} \; || die - - # Workaround bug #553416 until upstream fixes it - epatch "${FILESDIR}"/clang-3.7-strip_doc_refs.patch fi if use lldb; then @@ -285,6 +282,8 @@ multilib_src_configure() { -DLLVM_ENABLE_SPHINX=$(usex doc) -DLLVM_ENABLE_DOXYGEN=OFF -DLLVM_INSTALL_HTML="${EPREFIX}/usr/share/doc/${PF}/html" + -DSPHINX_WARNINGS_AS_ERRORS=OFF + -DLLVM_INSTALL_UTILS=ON ) if use clang; then @@ -500,3 +499,10 @@ multilib_src_install_all() { popd >/dev/null || die fi } + +pkg_postinst() { + if use clang; then + elog "To enable OpenMP support in clang, install sys-libs/libomp" + elog "and use the '-fopenmp=libomp' command line option" + fi +} |