[PATCH libfontenc] Export only public API symbols

Peter Hutterer peter.hutterer at who-t.net
Mon Dec 6 16:27:35 PST 2010


On Mon, Dec 06, 2010 at 01:56:49PM -0300, Cristian Rodríguez wrote:
> 
> Signed-off-by: Cristian Rodríguez <cristian.rodriguez at opensuse.org>
> ---
>  src/Makefile.am |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 96d0a38..d4d613a 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -17,7 +17,7 @@ INCLUDES = -I$(top_srcdir)/include $(FONTENCDEFS)
>  
>  libfontenc_la_LIBADD = @FONTENC_LIBS@
>  
> -libfontenc_la_LDFLAGS = -version-number 1:0:0 -no-undefined
> +libfontenc_la_LDFLAGS = -export-symbols-regex '^Font.*' -version-number 1:0:0 -no-undefined
>  
>  libfontencincludedir = $(includedir)/X11/fonts
>  libfontencinclude_HEADERS = \
> -- 
> 1.7.3.1

wouldn't it be nicer to use _X_EXPORT in the header files so that it's
obvious when reading the code instead of applied after the fact?

Cheers,
  Peter


More information about the xorg-devel mailing list