Comment 5 for bug 1922417

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hello Robie, the cmake if I understand correctly checks the list of libraries returned from pkg-config call, and adds them only if found on the system.
The problem is that if the pkgconfig call has a -L *but* libraries listed somewhere else (e.g. in standard ld.so.conf path), the call strips them from the list.

So, in this case you get a subset of libraries returned to cmake, and with this patch, the list of libraries will increase (not decrease). With a default as-needed flag turned on, the side effect will be to have them ignored in such cases, nothing to worry about.