On Wed, Jan 11, 2012 at 04:38:54PM +0100, Robert Ancell wrote: > Attached patch stops private symbols from being exported in the > library (currently bus_from_str, bus_to_str, type_from_str)
Can we use something similar to X.org's _X_EXPORT. At least that forces us to mark symbols we actually want to export explicitly. Cheers, Peter > >From b4a7a3a434f1fa03a3f8a94c84f5b60d83980a1c Mon Sep 17 00:00:00 2001 > From: Robert Ancell <robert.anc...@canonical.com> > Date: Tue, 10 Jan 2012 10:19:46 +0100 > Subject: [PATCH] lib: Don't export private symbols > > Signed-off-by: Robert Ancell <robert.anc...@canonical.com> > --- > libwacom/Makefile.am | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/libwacom/Makefile.am b/libwacom/Makefile.am > index c09417a..57032db 100644 > --- a/libwacom/Makefile.am > +++ b/libwacom/Makefile.am > @@ -9,6 +9,8 @@ libwacom_la_SOURCES = \ > libwacom-error.c \ > libwacom-database.c > > +libwacom_la_LDFLAGS = -export-symbols-regex '^libwacom_' > + > libwacom_la_LIBADD = $(GLIB_LIBS) > > libwacomincludedir = $(includedir)/libwacom-1.0/libwacom/ > -- > 1.7.7.3 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel