You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg-config's libraries are not automatically derived from /ARROW_(STATIC|SHARED)_INSTALL_INTERFACE_LIBS/, instead they are managed in independent variables /ARROW_PC_LIBS(|_PRIVATE). When linking statically, pkg-config doesn't pick up the new dependency on libdl introduced by #39067
bkietz
changed the title
[C++] Ensure pkg-config flags include -ldl for static builds
[C++] pkg-config flags don't include -ldl for static builds
Mar 15, 2024
bkietz
added a commit
to bkietz/arrow
that referenced
this issue
Mar 15, 2024
#40578)
### Rationale for this change
When linking statically, pkg-config doesn't pick up the new dependency on libdl introduced by #39067
This produces [unresolved symbol errors](#39067 (comment))
### What changes are included in this PR?
Addition of `-ldl` to `ARROW_PC_LIBS_PRIVATE` to ensure linkage to the necessary library
### Are these changes tested?
yes
### Are there any user-facing changes?
no
* GitHub Issue: #40577
Authored-by: Benjamin Kietzman <bengilgit@gmail.com>
Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
pkg-config
's libraries are not automatically derived from/ARROW_(STATIC|SHARED)_INSTALL_INTERFACE_LIBS/
, instead they are managed in independent variables/ARROW_PC_LIBS(|_PRIVATE)
. When linking statically, pkg-config doesn't pick up the new dependency onlibdl
introduced by #39067This produces unresolved symbol errors
The text was updated successfully, but these errors were encountered: