[all-commits] [llvm/llvm-project] 78631a: [Flang] explicitly link the pthread library when b...

Daniel Chen via All-commits all-commits at lists.llvm.org
Fri Mar 7 11:14:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78631ac51b6b590d89031b1af0e14adc5f6d96f7
      https://github.com/llvm/llvm-project/commit/78631ac51b6b590d89031b1af0e14adc5f6d96f7
  Author: Daniel Chen <cdchen at ca.ibm.com>
  Date:   2025-03-07 (Fri, 07 Mar 2025)

  Changed paths:
    M flang-rt/CMakeLists.txt
    M flang-rt/cmake/modules/AddFlangRT.cmake

  Log Message:
  -----------
  [Flang] explicitly link the pthread library when building shared flang-rt. (#129956)

This patch is to explicitly link the pthread library when building
shared flang-rt.
On AIX, for example, it needs to link in `libpthread.a` explicitly in
order to resolve the references to those `pthread_*` functions in
`include/flang-rt/runtime/lock.h`



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list