GNOME Bugzilla – Bug 721087
Missing -lselinux in pkg-config --libs --static gio-2.0
Last modified: 2013-12-26 16:24:28 UTC
Created attachment 264903 [details] [review] Patch gio uses libselinux if configured, but this is not reflected in libgio-2.0.pc.in, so trying to link statically to gio using $(pkg-config --libs --static gio-2.0) gives the following error: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgio-2.0.a(libgio_2_0_la-glocalfileinfo.o): In function `set_selinux_context': (.text+0x1d7): undefined reference to `is_selinux_enabled' Attached patch fixes the issue.
Review of attachment 264903 [details] [review]: Looks good. If you submit more patches in the future, please see https://wiki.gnome.org/GnomeLove/SubmittingPatches for how to write patches that can be applied directly to git.
https://git.gnome.org/browse/glib/commit/?id=f3c9b17d3c8984fa7281bd6c849aa6a0170b54de