commit | 8df14ac3f097ae09e536a58b9e8f7505dd2b5550 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Apr 07 16:52:05 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Apr 08 15:17:45 2015 -0700 |
tree | f91bc494939acf1c9afa0640d656a9ba0e492f5c | |
parent | 581c18998830a44c20b8932935a2f32442bd8e80 [diff] [blame] |
Add rpath to host executables Host executables need rpath set so they can find their shared libraries. Change-Id: I297682d3266bb436af0f594e8164ee4b9e7ab234
diff --git a/cc/x86_linux_host.go b/cc/x86_linux_host.go index 94b4a72..8eaa099 100644 --- a/cc/x86_linux_host.go +++ b/cc/x86_linux_host.go
@@ -61,10 +61,12 @@ linuxX86Ldflags = []string{ "-m32", + `-Wl,-rpath,\$$ORIGIN/../lib`, } linuxX8664Ldflags = []string{ "-m64", + `-Wl,-rpath,\$$ORIGIN/../lib64`, } linuxClangCflags = append([]string{