`llvm16` + `llvm16-dev`: `llvm-config` doesn't report shared libraries like it should
See https://gitlab.com/taricorp/llvm-sys.rs/-/merge_requests/39#note_1678018788. A copy below:
--
MacOS with Homebrew llvm@16: stable 16.0.6
:
$ llvm-config --system-libs --link-static
-lm /opt/homebrew/lib/libz3.dylib -lz -lzstd -lcurses -lxml2
Alpine Linux 3.18 with llvm16
and llvm16-dev
:
$ llvm-config --system-libs --link-shared
So nothing.
--link-static
yields only a lot of error
lines about the archive files not being present (correct, hadn't installed the llvm16-static
package since I was interesting in the dynamic linking scenario.
With llvm16-static
, though:
$ llvm-config --system-libs --link-static
-lrt -ldl -lm -lz -lzstd -lxml2
So, it misses a library flag for a curses
implementation but the CMake config for the LLVM OS package means it should:
https://git.alpinelinux.org/aports/tree/main/llvm16/APKBUILD#n182
With dynamic linking, it lists no dependency libraries at all.
Can we conclude that llvm-config
is broken? How should we deal with this?