]> code.delx.au - pulseaudio/commitdiff
build-sys: Use AM_CPPFLAGS instead of AM_CFLAGS for preprocessor arguments
authorJavier Jardón <jjardon@gnome.org>
Sat, 23 Mar 2013 18:26:09 +0000 (18:26 +0000)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 25 Mar 2013 15:00:48 +0000 (17:00 +0200)
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

src/Makefile.am

index 079083ee1b378460051d66ffa79081a08f12c440..559c43eef92220bd83241943c2b6acbb161bfbe8 100644 (file)
@@ -41,13 +41,14 @@ endif
 #     Compiler/linker flags       #
 ###################################
 
-AM_CFLAGS = \
+AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/modules \
        -I$(top_builddir)/src/modules \
-       $(PTHREAD_CFLAGS) \
        -DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
        -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
+AM_CFLAGS = \
+       $(PTHREAD_CFLAGS)
 AM_CXXFLAGS = $(AM_CFLAGS)
 SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO