[alsa-devel] [alsa-utils PATCH 2/3] Pass -D_GNU_SOURCE together with INCLUDES (for the preprocessor).

Diego Elio Pettenò flameeyes at gmail.com
Thu Jan 20 16:02:25 CET 2011


This removes this warning when rebuilding autotools:

alsaloop/Makefile.am:3: `CFLAGS' is a user variable, you should not
override it;
alsaloop/Makefile.am:3: use `AM_CFLAGS' instead.
---
 alsaloop/Makefile.am |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/alsaloop/Makefile.am b/alsaloop/Makefile.am
index f76eafd..840448f 100644
--- a/alsaloop/Makefile.am
+++ b/alsaloop/Makefile.am
@@ -1,6 +1,5 @@
-INCLUDES = -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/include -D_GNU_SOURCE
 LDADD = -lm
-CFLAGS += -D_GNU_SOURCE
 if HAVE_SAMPLERATE
 LDADD += -lsamplerate
 endif
-- 
1.7.4.rc2



More information about the Alsa-devel mailing list