[all-commits] [llvm/llvm-project] 400cd6: [libomptarget][amdgpu] use --allow-shlib-undefined...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Sun Aug 8 04:53:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 400cd6d2f0496e913e25285615a86f9c29811171
      https://github.com/llvm/llvm-project/commit/400cd6d2f0496e913e25285615a86f9c29811171
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2021-08-08 (Sun, 08 Aug 2021)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/CMakeLists.txt

  Log Message:
  -----------
  [libomptarget][amdgpu] use --allow-shlib-undefined to link on FreeBSD

On FreeBSD, the `environ` symbol is undefined at link time for shared
libraries, but resolved by the dynamic linker at runtime. Therefore,
allow the symbol to be undefined when creating a shared library, by
using the `--allow-shlib-undefined` linker flag, instead of `-z defs`
(a.k.a `--no-undefined`).

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D107698




More information about the All-commits mailing list