Ticket #336: 0001-Limit-list-of-exported-symbols-for-libavahi-ui-gtk3.patch

File 0001-Limit-list-of-exported-symbols-for-libavahi-ui-gtk3.patch, 1.6 KB (added by mbiebl, 4 years ago)

patch to limit list of exported symbols for libavahi-ui

  • avahi-ui/Makefile.am

    From e4eb835efa68bb815d1832c1549acc9f6e075d1f Mon Sep 17 00:00:00 2001
    From: Michael Biebl <biebl@debian.org>
    Date: Sat, 30 Apr 2011 03:02:11 +0200
    Subject: [PATCH] Limit list of exported symbols for libavahi-ui(-gtk3)
    
    Use -export-symbols-regex '^aui_' to limit the list of exported
    symbols and so we don't export stdb_{getent,lookup,setent,shutdown}.
    ---
     avahi-ui/Makefile.am |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/avahi-ui/Makefile.am b/avahi-ui/Makefile.am
    index 72d6023..b7ef76b 100644
    a b libavahi_ui_la_SOURCES = \ 
    5353    avahi-ui.h avahi-ui.c 
    5454libavahi_ui_la_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS) 
    5555libavahi_ui_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GTK20_LIBS) 
    56 libavahi_ui_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_UI_VERSION_INFO) 
     56libavahi_ui_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_UI_VERSION_INFO) -export-symbols-regex '^aui_' 
    5757 
    5858libavahi_ui_gtk3_la_SOURCES = $(libavahi_ui_la_SOURCES) 
    5959libavahi_ui_gtk3_la_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS) 
    6060libavahi_ui_gtk3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GTK30_LIBS) 
    61 libavahi_ui_gtk3_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_UI_VERSION_INFO) 
     61libavahi_ui_gtk3_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_UI_VERSION_INFO) -export-symbols-regex '^aui_' 
    6262 
    6363if HAVE_GDBM 
    6464libavahi_ui_la_SOURCES += ../avahi-utils/stdb.h ../avahi-utils/stdb.c