shithub: aubio

Download patch

ref: 78e1c181264a2414c32b3c9098576eeb18e17deb
parent: c9b33bbd3f37bc73ec2ba654cb40b70733fa2e53
author: Paul Brossier <piem@altern.org>
date: Sat Jun 3 12:00:13 EDT 2006

avoid overwriting CFLAGS in python/aubio/Makefile.am
avoid overwriting CFLAGS in python/aubio/Makefile.am


--- a/python/aubio/Makefile.am
+++ b/python/aubio/Makefile.am
@@ -44,9 +44,10 @@
 
 all: _aubiowrapper.so
 
-# removed -Wall -Wmissing-prototypes -Wmissing-declarations 
-CFLAGS = -fPIC -DJACK_SUPPORT -Werror -Wno-char-subscripts \
-	-Wno-unknown-pragmas $(SWCFLAGS) \
+NOWARN_CFLAGS = -Wno-missing-prototypes -Wno-missing-declarations \
+	-Wno-strict-aliasing
+
+AM_CFLAGS = $(SWCFLAGS) -fPIC -DPIC \
 	-I../../src -I$(srcdir)/../../src -I$(srcdir)/../../ext \
 	-I/usr/include/python${PYTHON_VERSION} \
 	-I${prefix}/include/python${PYTHON_VERSION} \
@@ -53,12 +54,11 @@
 	-I/usr/include \
 	-I${prefix}/include
 
-LDFLAGS = $(SWLDFLAGS) -L../../ext/.libs -laubioext -L../../src/.libs -laubio
+AM_LDFLAGS = $(SWLDFLAGS) -L../../ext/.libs -laubioext -L../../src/.libs -laubio
 
 aubio_wrap.c:
 	$(SWIG) -outdir . -o aubio_wrap.c -python $(srcdir)/../../swig/aubio.i
 
 _aubiowrapper.so: aubio_wrap.c
-	$(CC) $(CFLAGS) -c aubio_wrap.c
-	$(CC) $(LDFLAGS) aubio_wrap.o -o _aubiowrapper.so
-
+	$(CC) $(AM_CFLAGS) $(CFLAGS) $(NOWARN_CFLAGS) -c aubio_wrap.c
+	$(CC) $(AM_LDFLAGS) $(LDFLAGS) aubio_wrap.o -o _aubiowrapper.so