diff --git a/Makefile.config.in b/Makefile.config.in index 88ad8af9..e1531fb1 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -59,6 +59,7 @@ LD = @LD@ GIT = @GIT@ CONFDIR = @CONFDIR@ DOXYGEN = @DOXYGEN@ +GETTEXT_CFLAGS = @GETTEXT_CFLAGS@ GLIBC21 = @GLIBC21@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ diff --git a/configure.in b/configure.in index caa1e9e4..013050f5 100644 --- a/configure.in +++ b/configure.in @@ -1673,11 +1673,13 @@ fi # A little fine tuning of gcc specific options (continued) # =================================================================== +GETTEXT_CFLAGS= if test "x$ac_cv_c_compiler_gnu" = "xyes"; then if test "$CONFIG_DEBUG" = "yes"; then # We want to see all warnings and live with none (in debug mode). CFLAGS="$CFLAGS -Werror" fi + GETTEXT_CFLAGS="-Wno-uninitialized" case "`$CC -dumpversion`" in 3.0|3.1|3.2) @@ -1778,6 +1780,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then done fi +AC_SUBST(GETTEXT_CFLAGS) EL_LOG_CONFIG(CFLAGS, [Compiler flags (CFLAGS)], []) EL_LOG_CONFIG(CPPFLAGS, [Preprocessor flags (CPPFLAGS)], []) EL_LOG_CONFIG(LDFLAGS, [Linker flags (LDFLAGS)], []) diff --git a/src/intl/gettext/Makefile b/src/intl/gettext/Makefile index 1b45ac0a..14a7418e 100644 --- a/src/intl/gettext/Makefile +++ b/src/intl/gettext/Makefile @@ -4,6 +4,8 @@ include $(top_builddir)/Makefile.config localedir = $(datadir)/locale builddir = $(top_builddir)/src/intl/gettext +CFLAGS += $(GETTEXT_CFLAGS) + OBJS = \ bindtextdom.o \ dcgettext.o \