+2009-03-04 Bruno Haible <bruno@clisp.org>
+
+ * 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 <bruno@clisp.org>
* doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
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
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: