shithub: aubio

Download patch

ref: 8e25b1b2e846b3b02f0866b1ccbed0be64893462
parent: d09cad2754dc34e0ba8e4d4d0df34c9e675055d2
author: Paul Brossier <piem@altern.org>
date: Mon May 30 04:07:58 EDT 2005

fix compilation of swig/python on macosx

--- a/python/aubio/Makefile.am
+++ b/python/aubio/Makefile.am
@@ -8,7 +8,8 @@
 all: _aubiowrapper.so
 
 # removed -Wall -Wmissing-prototypes -Wmissing-declarations 
-SWCFLAGS = -DJACK_SUPPORT -Werror -Wno-char-subscripts -Wno-unknown-pragmas \
+CFLAGS = -DJACK_SUPPORT -Werror -Wno-char-subscripts \
+	-Wno-unknown-pragmas $(SWCFLAGS) \
 	-I../../src -I../../ext \
 	-I/usr/include/python${PYTHON_VERSION} \
 	-I${prefix}/include/python${PYTHON_VERSION} \
@@ -15,11 +16,11 @@
 	-I/usr/include \
 	-I${prefix}/include
 
-SWLDFLAGS = -shared -L../../ext/.libs -laubioext -L../../src/.libs -laubio
+LDFLAGS = $(SWLDFLAGS) -L../../ext/.libs -laubioext -L../../src/.libs -laubio
 
 aubio_wrap.c:
 	$(SWIG) -outdir . -o aubio_wrap.c -python ../../swig/aubio.i
 
 _aubiowrapper.so: aubio_wrap.c
-	$(CC)   $(SWCFLAGS) -c aubio_wrap.c
-	$(CC)   $(SWLDFLAGS) aubio_wrap.o -o _aubiowrapper.so
+	$(CC) $(CFLAGS) -c aubio_wrap.c
+	$(CC) $(LDFLAGS) aubio_wrap.o -o _aubiowrapper.so