ref: 0ec71131121123382eebdaded13246a9d26ef7aa
parent: 7a1bbbd5d38ddb6e4d1c682c60b93710ccf8a83c
author: Paul Brossier <piem@piem.org>
date: Thu Dec 1 18:27:23 EST 2016
src/wscript_build: honor --includedir
--- a/src/wscript_build
+++ b/src/wscript_build
@@ -26,7 +26,11 @@
build_features = ['cstlib', 'cshlib']
elif ctx.env['DEST_OS'] in ['emscripten']:
build_features = ['cstlib']
-else: #linux, darwin, android, mingw, ...
+elif '--static' in ctx.env['LDFLAGS'] or '--static' in ctx.env['LINKFLAGS']:
+ # static in cflags, ...
+ build_features = ['cstlib']
+else:
+ # linux, darwin, android, mingw, ...
build_features = ['cstlib', 'cshlib']
# also install static lib
@@ -41,6 +45,6 @@
vnum = ctx.env['LIB_VERSION'])
# install headers, except _priv.h ones
-ctx.install_files('${PREFIX}/include/aubio/',
+ctx.install_files('${INCLUDEDIR}/aubio/',
ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
relative_trick=True)