summaryrefslogtreecommitdiff
path: root/debian/patches/waf_cstlib_inst-8698499.diff
blob: 7738f2d5a148ea1ffc19a1bd31029f34795dd090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
commit 8698499e0619b3c2cd0dcf7c880f3bec64bbb876
Author: Paul Brossier <piem@piem.org>
Date:   Sat Nov 26 14:52:37 2016 +0100

    src/wscript_build: also install static library
    
    See this post from waf author:
      https://groups.google.com/forum/#!msg/waf-users/GBHPrmO_lDg/34VWYEaks40J

diff --git a/src/wscript_build b/src/wscript_build
index f2bd2ba..c55d5f2 100644
--- a/src/wscript_build
+++ b/src/wscript_build
@@ -29,6 +29,11 @@ elif ctx.env['DEST_OS'] in ['emscripten']:
 else: #linux, darwin, android, mingw, ...
     build_features = ['cstlib', 'cshlib']
 
+# also install static lib
+from waflib.Tools.c import cstlib
+from waflib.Tools.fc import fcstlib
+fcstlib.inst_to = cstlib.inst_to = '${LIBDIR}'
+
 for target in build_features:
     ctx(features = 'c ' + target,
             use = uselib + ['lib_objects'],