[ostree] build: Unify CPPFLAGS settings



commit 1242704d68f6125f8b76850704e014b7dcd788ab
Author: Colin Walters <walters verbum org>
Date:   Mon Sep 8 11:47:58 2014 -0400

    build: Unify CPPFLAGS settings
    
    The libostree core uses SYSCONFDIR now, so we should ensure it's used
    consistently.  Someone else was seeing SYSCONFDIR not being defined
    while compiling with a newer automake version, which may process
    CPPFLAGS more precisely.

 Makefile-libostree.am |    3 +--
 Makefile-ostree.am    |    1 -
 Makefile.am           |    2 ++
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Makefile-libostree.am b/Makefile-libostree.am
index e7b141a..fbe173d 100644
--- a/Makefile-libostree.am
+++ b/Makefile-libostree.am
@@ -98,8 +98,7 @@ libostree_1_la_SOURCES += \
 endif
 
 libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree \
-       -DLOCALEDIR=\"$(datadir)/locale\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-       -DGPGVPATH=\"$(GPGVPATH)\" $(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_DEP_LZMA_CFLAGS)
+       $(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_DEP_LZMA_CFLAGS)
 libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions -export-symbols-regex '^ostree_'
 libostree_1_la_LIBADD = libotutil.la libostree-kernel-args.la $(OT_INTERNAL_GIO_UNIX_LIBS) 
$(OT_DEP_LZMA_LIBS)
 
diff --git a/Makefile-ostree.am b/Makefile-ostree.am
index 76df368..47b06f1 100644
--- a/Makefile-ostree.am
+++ b/Makefile-ostree.am
@@ -72,7 +72,6 @@ ostree_SOURCES += \
        $(NULL)
 
 ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree 
-I$(srcdir)/src/ostree \
-       -DLOCALEDIR=\"$(datadir)/locale\" -DSYSCONFDIR=\"$(sysconfdir)\" \
        $(NULL)
 ostree_bin_shared_ldadd = libotutil.la libostree-kernel-args.la libostree-1.la
 
diff --git a/Makefile.am b/Makefile.am
index df7771a..614413c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,6 +19,8 @@ include Makefile-decls.am
 
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 AM_CPPFLAGS += -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \
+       -DLOCALEDIR=\"$(datadir)/locale\" -DSYSCONFDIR=\"$(sysconfdir)\" \
+       -DGPGVPATH=\"$(GPGVPATH)\" \
        -DOSTREE_FEATURES='"$(OSTREE_FEATURES)"' \
        -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36 \
        -DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_2_40 -DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_40


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