[AIX][llvm-go] AIX linker does not recognize `-rpath`
authorSteven Wan <wanyu9511@gmail.com>
Mon, 15 Nov 2021 18:12:59 +0000 (13:12 -0500)
committerSteven Wan <wanyu9511@gmail.com>
Mon, 15 Nov 2021 18:13:08 +0000 (13:13 -0500)
commit351870720fcb67f260df031f9425acfd641f5f2d
tree0023a73233ed9f0905274427a6e2c5cfdf7dfa29
parent0b9d3a6e53e6c6488b531f3c8c281b485ca3b14a
[AIX][llvm-go] AIX linker does not recognize `-rpath`

The existing logic adds `-rpath` to CGO_LDFLAGS, which is not a valid linker option on AIX. This patch substitutes it with `-blibpath` on AIX.

Reviewed By: daltenty

Differential Revision: https://reviews.llvm.org/D113704
llvm/tools/llvm-go/llvm-go.go