Files
gentoo/sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch
Benda Xu b2f6e08f25 sci-physics/root: disable cling -isystem injection.
This fixes the ACLiC failure on Prefix.

  We use SYSROOT to guide llvm in ROOT to locate headers and libraries
  at build time.  Such feature is not to be used at runtime.

  The patch has no effect to usual Gentoo, therefore applying it
  unconditionally.

Closes: https://bugs.gentoo.org/653124
Package-Manager: Portage-2.3.28, Repoman-2.3.9
2018-04-16 15:31:19 +09:00

23 lines
989 B
Diff

On Prefix, we have specified SYSROOT for llvm at build time. But we
do not need sysroot at runtime as we are not crosscompiling.
This patch disable the sysroot feature for cling, so that ACLiC can
work on Prefix.
Index: root-6.12.06/interpreter/cling/lib/Utils/Paths.cpp
===================================================================
--- root-6.12.06.orig/interpreter/cling/lib/Utils/Paths.cpp
+++ root-6.12.06/interpreter/cling/lib/Utils/Paths.cpp
@@ -57,11 +57,6 @@ using namespace clang;
void CopyIncludePaths(const clang::HeaderSearchOptions& Opts,
llvm::SmallVectorImpl<std::string>& incpaths,
bool withSystem, bool withFlags) {
- if (withFlags && Opts.Sysroot != "/") {
- incpaths.push_back("-isysroot");
- incpaths.push_back(Opts.Sysroot);
- }
-
/// User specified include entries.
for (unsigned i = 0, e = Opts.UserEntries.size(); i != e; ++i) {
const HeaderSearchOptions::Entry &E = Opts.UserEntries[i];