[glib/resources-extraneous-symbol] resources: Hide external data symbol
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/resources-extraneous-symbol] resources: Hide external data symbol
- Date: Mon, 16 May 2022 12:54:08 +0000 (UTC)
commit 8882bbdf7dba287095c38bb61444f8c211a54dfe
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 11 23:07:09 2022 -0400
resources: Hide external data symbol
Apply --internal to the symbol for the section as well.
Only do this with --external-data, since otherwise gcc
will complain about ignoring the attribute.
This fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4598
gio/glib-compile-resources.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 82f19563a6..c71e21ced2 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -1185,9 +1185,9 @@ main (int argc, char **argv)
if (external_data)
{
g_fprintf (file,
- "extern const SECTION union { const guint8 data[%"G_GSIZE_FORMAT"]; const double
alignment; void * const ptr;} %s_resource_data;"
+ "extern const %s SECTION union { const guint8 data[%" G_GSIZE_FORMAT "]; const double
alignment; void * const ptr;} %s_resource_data;"
"\n",
- data_size, c_name);
+ export, data_size, c_name);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]