[geocode-glib] build: Use CFLAGS instead CPPFLAGS to pass additional C compiler flags



commit d4f3813ab57d9f78e25f331f6cdc4f4f9a4a8ae3
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Sep 17 16:30:41 2013 +0100

    build: Use CFLAGS instead CPPFLAGS to pass additional C compiler flags
    
    As the automake documentation says:
    
    AM_CPPFLAGS: The contents of this variable are passed to every compilation
      that invokes the C preprocessor; it is a list of arguments to the preprocessor.
      For instance, -I and -D options should be listed here
    
    AM_CFLAGS: This is the variable the Makefile.am author can use to pass in
      additional C compiler flags.
    
    http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html

 geocode-glib/Makefile.am |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/Makefile.am b/geocode-glib/Makefile.am
index 1f75efb..3eb7c54 100644
--- a/geocode-glib/Makefile.am
+++ b/geocode-glib/Makefile.am
@@ -40,7 +40,9 @@ gcglib_HEADERS =                                      \
        $(GCGLIB_HEADER_FILES)                          \
        geocode-enum-types.h
 
-AM_CFLAGS = -I$(top_srcdir) -I$(top_builddir) $(GEOCODE_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) 
$(DISABLE_DEPRECATED) -DTEST_SRCDIR=\""$(srcdir)/data/"\"
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) -DTEST_SRCDIR=\""$(srcdir)/data/"\"
+
+AM_CFLAGS = $(GEOCODE_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED)
 
 BUILT_SOURCES = \
                geocode-enum-types.c \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]