diff --git a/cc/x86_linux_host.go b/cc/x86_linux_host.go index 94b4a7219..8eaa099c6 100644 --- a/cc/x86_linux_host.go +++ b/cc/x86_linux_host.go @@ -61,10 +61,12 @@ var ( linuxX86Ldflags = []string{ "-m32", + `-Wl,-rpath,\$$ORIGIN/../lib`, } linuxX8664Ldflags = []string{ "-m64", + `-Wl,-rpath,\$$ORIGIN/../lib64`, } linuxClangCflags = append([]string{