diff options
author | Javier Jardón <jjardon@gnome.org> | 2013-10-26 23:26:12 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-06-26 13:43:23 +0300 |
commit | ba925a0213fe3e59a5c5cc3ae3c73f8b72cef014 (patch) | |
tree | 36fde87f32417d8345223ac9c43d81ca04eaa8ea | |
parent | 9940fecac7189c55fb0992265ed6946dae6074ed (diff) |
build-sys: Use AM_CPPFLAGS instead of AM_CFLAGS for preprocessor arguments
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
-rw-r--r-- | src/Makefile.am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d7ef395b0..c5fea5dc0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -46,11 +46,11 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/modules \ -I$(top_builddir)/src/modules \ -DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \ - -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\" -AM_CFLAGS = \ - $(PTHREAD_CFLAGS) \ + -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\" \ -DPA_SRCDIR=\"$(abs_srcdir)\" \ -DPA_BUILDDIR=\"$(abs_builddir)\" +AM_CFLAGS = \ + $(PTHREAD_CFLAGS) AM_CXXFLAGS = $(AM_CFLAGS) SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO |