From 0db75c6b1058d8730d9f89de8eec52804b114969 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Oct 2013 19:41:26 -0400 Subject: [PATCH] Wayland: avoid accidental export of internal symbols Some symbols in the generated Wayland code were getting decorated with WL_EXPORT, causing them to show up in the libgdk exports. We don't want that. https://bugzilla.gnome.org/show_bug.cgi?id=710141 --- gdk/wayland/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/Makefile.am b/gdk/wayland/Makefile.am index 6896bff080..bc5375cc29 100644 --- a/gdk/wayland/Makefile.am +++ b/gdk/wayland/Makefile.am @@ -50,6 +50,8 @@ libgdkwaylandinclude_HEADERS = \ %-protocol.c : $(srcdir)/protocol/%.xml $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ + $(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@ + %-server-protocol.h : $(srcdir)/protocol/%.xml $(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@ %-client-protocol.h : $(srcdir)/protocol/%.xml