summaryrefslogtreecommitdiffstats
path: root/src/aubio.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-11-17 03:24:44 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-11-17 03:25:19 (GMT)
commitb11f0863f58008fd11ab7d69df960e9f2838e530 (patch)
tree78c9a74d3a30e3ad8eaf9186bdb6b28afcea742e /src/aubio.mk
parentf390c32a770c4ffe2c97dddee9567c627a224c23 (diff)
downloadmxe-b11f0863f58008fd11ab7d69df960e9f2838e530.zip
mxe-b11f0863f58008fd11ab7d69df960e9f2838e530.tar.gz
mxe-b11f0863f58008fd11ab7d69df960e9f2838e530.tar.bz2
aubio: Enable shared build
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/aubio.mk')
-rw-r--r--src/aubio.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/aubio.mk b/src/aubio.mk
index 40728e7..593c5d1 100644
--- a/src/aubio.mk
+++ b/src/aubio.mk
@@ -25,7 +25,13 @@ define $(PKG)_BUILD
--with-target-platform='win$(BITS)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-fftw3f \
- --enable-static --disable-shared
-endef
+ $(if $(BUILD_STATIC), \
+ --enable-static --disable-shared, \
+ --disable-static --enable-shared)
+
+ # It is not trivial to adjust the installation path for the DLL in the
+ # waf-based build system. Adjust it here.
+ $(if $(BUILD_SHARED), \
+ mv '$(PREFIX)/$(TARGET)/lib/libaubio-4.dll' '$(PREFIX)/$(TARGET)/bin')
-$(PKG)_BUILD_SHARED =
+endef