From aaebcd28a6dcc98758138c51648fbac2526d0e72 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 4 Mar 2009 12:04:32 +0100 Subject: [PATCH] Make it easier to use the 'visibility' module. --- ChangeLog | 7 +++++++ gnulib-tool | 1 + modules/visibility | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 86a78527e..903ff80bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-04 Bruno Haible + + * modules/visibility (Makefile.am): Augment AM_CFLAGS. + * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of + AM_CFLAGS. + Reported by Simon Josefsson. + 2009-03-03 Bruno Haible * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro. diff --git a/gnulib-tool b/gnulib-tool index 5882c68b7..d47bb8123 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -1932,6 +1932,7 @@ func_emit_lib_Makefile_am () if test -z "$makefile_name"; then echo echo "AM_CPPFLAGS =" + echo "AM_CFLAGS =" fi echo if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" allsnippets.tmp > /dev/null; then diff --git a/modules/visibility b/modules/visibility index 33e5e6838..a30249c74 100644 --- a/modules/visibility +++ b/modules/visibility @@ -10,6 +10,11 @@ configure.ac: gl_VISIBILITY Makefile.am: +# The value of $(CFLAG_VISIBILITY) needs to be added to the CFLAGS for the +# compilation of all sources that make up the library. This line here does it +# only for the gnulib part of it. The developer is responsible for adding +# $(CFLAG_VISIBILITY) to the Makefile.ams of the other portions of the library. +AM_CFLAGS += $(CFLAG_VISIBILITY) Include: -- 2.11.0