Skip to content

Commit

Permalink
add rpath for clang as default
Browse files Browse the repository at this point in the history
  • Loading branch information
its-pointless authored and Leonid Pliushch committed Mar 16, 2019
1 parent cf04e00 commit a4a2aa5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/libllvm/tools-clang-lib-Driver-ToolChains-Linux.cpp.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
--- ./linux.cpp.orig 2019-02-18 04:44:14.793138642 +0000
+++ ./tools/clang/lib/Driver/ToolChains/Linux.cpp 2019-02-18 04:52:44.527535617 +0000
@@ -311,6 +311,8 @@
--- ./tools/clang/lib/Driver/ToolChains/Linux.cpp.orig 2018-07-30 19:44:13.000000000 +0000
+++ ./tools/clang/lib/Driver/ToolChains/Linux.cpp 2019-03-14 03:42:40.783434246 +0000
@@ -291,7 +291,10 @@
// possible permutations of these directories, and seeing which ones it added
// to the link paths.
path_list &Paths = getFilePaths();
+ if(IsAndroid)
-
+ if(IsAndroid) {
+ addPathIfExists(D, SysRoot + "@TERMUX_PREFIX@/lib", Paths);

+ ExtraOpts.push_back("-rpath=@TERMUX_PREFIX@/lib");
+ }
const std::string OSLibDir = getOSLibDir(Triple, Args);
const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
@@ -652,8 +654,27 @@

@@ -628,8 +631,27 @@
return;

if (!DriverArgs.hasArg(options::OPT_nostdlibinc))
Expand Down Expand Up @@ -38,7 +41,7 @@
if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
SmallString<128> P(D.ResourceDir);
llvm::sys::path::append(P, "include");
@@ -968,7 +989,7 @@
@@ -903,7 +925,7 @@
}

bool Linux::isPIEDefault() const {
Expand Down

0 comments on commit a4a2aa5

Please sign in to comment.