GNOME Bugzilla – Bug 685266
[PATCH] Add an option to valac for passing args to the pkg-config utility
Last modified: 2018-05-22 14:30:30 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
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.
-- 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.