diff options
author | Max Kellermann <max@duempel.org> | 2008-12-24 11:49:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-24 11:49:09 +0100 |
commit | fefd3d6fb7d32513cd0e05c53f404f35a67ace05 (patch) | |
tree | 45678ec6481c3bdd602d2e8212544d0fc60fd472 /src | |
parent | d05c7f898f94aeabdec47850f782f24d14793b33 (diff) | |
download | mpd-fefd3d6fb7d32513cd0e05c53f404f35a67ace05.tar.gz mpd-fefd3d6fb7d32513cd0e05c53f404f35a67ace05.tar.xz mpd-fefd3d6fb7d32513cd0e05c53f404f35a67ace05.zip |
Makefile.am: fix sparse invocation
Added missing includes.
Diffstat (limited to '')
-rw-r--r-- | src/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 98b1cc830..ad4ad99f3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -306,10 +306,13 @@ mpd_LDADD = $(MPD_LIBS) \ # URL: git://www.kernel.org/pub/scm/devel/sparse/sparse.git SPARSE = sparse SPARSE_FLAGS = +SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \ + -I$(shell $(CC) -print-file-name=include) \ + -I$(shell $(CC) -print-file-name=include-fixed) sparse-check: for i in $(mpd_SOURCES); \ do \ - $(SPARSE) -I. $(mpd_CFLAGS) $(SPARSE_FLAGS) $(srcdir)/$$i || exit; \ + $(SPARSE) -I. $(mpd_CFLAGS) $(mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \ done TEST_CFLAGS = -DUNIT_TEST |