diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-16 16:47:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-16 16:47:37 +0100 |
commit | 8aebb228036d5e2863b7eaa6e319ab41c1669269 (patch) | |
tree | 00f4b90ce32462dc8e99ae54a31d6462ea2c3ac6 /sci-physics/root/files | |
parent | 76cba73c47c8694e74377004634daca18f2d9c08 (diff) |
gentoo resync : 16.04.2018
Diffstat (limited to 'sci-physics/root/files')
-rw-r--r-- | sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch b/sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch new file mode 100644 index 000000000000..1f8e056e946e --- /dev/null +++ b/sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch @@ -0,0 +1,22 @@ +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]; |