Add rpath to host executables

Host executables need rpath set so they can find their shared
libraries.

Change-Id: I297682d3266bb436af0f594e8164ee4b9e7ab234
This commit is contained in:
Colin Cross 2015-04-07 16:52:05 -07:00
parent 581c189988
commit 8df14ac3f0

View file

@ -61,10 +61,12 @@ var (
linuxX86Ldflags = []string{
"-m32",
`-Wl,-rpath,\$$ORIGIN/../lib`,
}
linuxX8664Ldflags = []string{
"-m64",
`-Wl,-rpath,\$$ORIGIN/../lib64`,
}
linuxClangCflags = append([]string{