diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 02:53:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 02:53:24 +0000 |
commit | b8ec9071f5d20d8518b02d0077428b2c9f88861b (patch) | |
tree | 6214c0d63a2bd5ae464941924a90f415687fa63c /sys-devel/clang/clang-17.0.0.9999.ebuild | |
parent | bdf6e70da7a28f45617c02a251bb6b3844202bc5 (diff) |
gentoo auto-resync : 29:01:2023 - 02:53:24
Diffstat (limited to 'sys-devel/clang/clang-17.0.0.9999.ebuild')
-rw-r--r-- | sys-devel/clang/clang-17.0.0.9999.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-devel/clang/clang-17.0.0.9999.ebuild b/sys-devel/clang/clang-17.0.0.9999.ebuild index 4979e95cd523..b45257440e78 100644 --- a/sys-devel/clang/clang-17.0.0.9999.ebuild +++ b/sys-devel/clang/clang-17.0.0.9999.ebuild @@ -85,6 +85,10 @@ src_prepare() { eprefixify \ lib/Lex/InitHeaderSearch.cpp \ lib/Driver/ToolChains/Darwin.cpp || die + + if ! use prefix-guest && [[ -n ${EPREFIX} ]]; then + sed -i "/LibDir.*Loader/s@return \"\/\"@return \"${EPREFIX}/\"@" lib/Driver/ToolChains/Linux.cpp || die + fi } check_distribution_components() { @@ -250,6 +254,7 @@ get_distribution_components() { multilib_src_configure() { local mycmakeargs=( + -DDEFAULT_SYSROOT=$(usex prefix-guest "" "${EPREFIX}") -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/share/man" -DCLANG_CONFIG_FILE_SYSTEM_DIR="${EPREFIX}/etc/clang" |