GNOME Bugzilla – Bug 774625
scanner: Add a way to specify extra libraries to link against
Last modified: 2016-12-10 15:44:45 UTC
Currently the only way to get a library to link against the dumper program is through '--link' which implies that library will be defined in the 'libraries' field of the .gir. When using libtool, we link against dependencies of that library as the .la defines that, but when using --no-libtool that won't happen and the user needs to be able to define to what other libraries the program needs to be link against, and this is what the new --extra-library argument is about. You can find more information about the issue at: https://github.com/mesonbuild/meson/issues/981
Created attachment 340137 [details] [review] scanner: Add a way to specify extra libraries to link against Currently the only way to get a library to link against the dumper program is through '--link' which implies that library will be defined in the 'libraries' field of the .gir. When using libtool, we link against dependencies of that library as the .la defines that, but when using --no-libtool that won't happen and the user needs to be able to define to what other libraries the program needs to be link against, and this is what the new --extra-library argument is about.
Ping :)
Review of attachment 340137 [details] [review]: Looks sane to me. I suppose without this patch, the workaround would be to define a "wrapper linker" like libtool does. Maybe you can suggest that for people trying to use meson with older g-i.
Attachment 340137 [details] pushed as eea2447 - scanner: Add a way to specify extra libraries to link against