[all-commits] [llvm/llvm-project] 351870: [AIX][llvm-go] AIX linker does not recognize `-rpath`

Steven Wan via All-commits all-commits at lists.llvm.org
Mon Nov 15 10:13:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 351870720fcb67f260df031f9425acfd641f5f2d
      https://github.com/llvm/llvm-project/commit/351870720fcb67f260df031f9425acfd641f5f2d
  Author: Steven Wan <wanyu9511 at gmail.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M llvm/tools/llvm-go/llvm-go.go

  Log Message:
  -----------
  [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




More information about the All-commits mailing list