GNOME Bugzilla – Bug 687742
Add support for internal linkage to glib-compile-resources
Last modified: 2012-11-10 03:14:59 UTC
Created attachment 228232 [details] [review] patch glib-compile-resources declares generated functions explicitly `extern'. So the functions can have an underscore prefix and all but, unless a link script or similar means are used, they are exported from the library and need PLT entries. I am not sure why anyone would want that but I assume some use cases exist for exporting functions that are meant to be used only internally because it was implemented this way. So I suggest adding an option --internal to glib-compile-resources that would result in functions being declared G_GNUC_INTERNAL instead of extern. Implementation is provided.
Review of attachment 228232 [details] [review]: Idea looks fine to me, but the patch also needs to update glib/docs/reference/gio/glib-compile-resources.xml to document the new option.
Created attachment 228480 [details] [review] patch with documentation Documentation added.
Review of attachment 228480 [details] [review]: Looks fine to me