After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774625 - scanner: Add a way to specify extra libraries to link against
scanner: Add a way to specify extra libraries to link against
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-11-17 15:43 UTC by Thibault Saunier
Modified: 2016-12-10 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scanner: Add a way to specify extra libraries to link against (3.57 KB, patch)
2016-11-17 15:43 UTC, Thibault Saunier
committed Details | Review

Description Thibault Saunier 2016-11-17 15:43:33 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
Comment 1 Thibault Saunier 2016-11-17 15:43:37 UTC
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.
Comment 2 Thibault Saunier 2016-12-03 23:00:02 UTC
Ping :)
Comment 3 Colin Walters 2016-12-10 15:31:50 UTC
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.
Comment 4 Colin Walters 2016-12-10 15:44:42 UTC
Attachment 340137 [details] pushed as eea2447 - scanner: Add a way to specify extra libraries to link against