[libcxx-commits] [libcxx] [libc++][test][shared] Add @CMAKE_DL_LIBS@ when needed (PR #222797)

Amilendra Kodithuwakku via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 14 06:56:06 PDT 2026


amilendra wrote:

> This looks incorrect to me. The CMake documentation says "This variable contains a name of the dynamic loading library, or a list of system libraries needed to use the dlopen() and dlclose() functions.". Neither of these functions are use in libc++ (on anything other than Apple platforms).

This seems to be what libunwind has replaced instead of hard coding `-ldl`.
https://reviews.llvm.org/D157866#change-rJ9EJM1KmMcp

https://github.com/llvm/llvm-project/pull/222797


More information about the libcxx-commits mailing list