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 685266 - [PATCH] Add an option to valac for passing args to the pkg-config utility
[PATCH] Add an option to valac for passing args to the pkg-config utility
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-02 06:18 UTC by Kder
Modified: 2018-05-22 14:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add an option to valac for passing args to the pkg-config utility (2.58 KB, patch)
2012-10-02 06:18 UTC, Kder
none Details | Review

Description Kder 2012-10-02 06:18:29 UTC
Created attachment 225553 [details] [review]
Add an option to valac for passing args to the pkg-config utility

I added a feature(command line option) for the vala compiler:

 -p, --pkg-config-args=ARGS         Pass ARGS to pkg-config utility

to pass customized arguments to pkg-config utility.

For example, we can use this to static compile a gtk program with valac:

valac test_static.vala -p "--static --libs gtk+-2.0 gee-0.8" --pkg gee-0.8 --pkg gtk+-2.0 -X -static
Comment 1 Michael 'Mickey' Lauer 2018-02-23 12:29:25 UTC
While I can understand that it might be desirable, I'm slightly against this proposal since it is of limited use. In general, decisions such as whether to link statically against a library, should be made "outside" of Vala, by using a build system.
Comment 2 GNOME Infrastructure Team 2018-05-22 14:30:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/322.