There’s a deduplication phase that remove duplicate arguments. -Wl,-rpath
is found multiple times and removed. While it is “fine” in the .pc
file as-is, CMake’s pkg-config
support needs to understand the flags to do things like this. A fix that could be done is to use -Wl,-rpath,/path
instead of split arguments. Other than that, it would be better if PkgConfig
would understand these flags and expose them as LINKER:
link options instead, but that is…non-trivial.
1 Like