diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2018-06-20 10:38:51 +0200 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2018-06-20 10:42:39 +0200 |
commit | afe713c71c2b8812f5c9adf106bc510cfb8bed24 (patch) | |
tree | 1baa2fc6fce5aa2df9bcc66e69efb3b26cc2a842 /wscript_build.py | |
parent | cd893626cbab0e55ca9f9a5ef384532e978fe702 (diff) |
build: add static libraries to libmpv.pc
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/wscript_build.py b/wscript_build.py index 2c8b8c300b..bdb92d322b 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -677,11 +677,15 @@ def build(ctx): _build_libmpv(False) def get_deps(): - res = "" + res = [] for k in ctx.env.keys(): - if k.startswith("LIB_") and k != "LIB_ST": - res += " ".join(["-l" + x for x in ctx.env[k]]) + " " - return res + if (k.startswith("LIB_") and k != "LIB_ST") \ + or (k.startswith("STLIB_") and k != "STLIB_ST" and k != "STLIB_MARKER"): + for l in ctx.env[k]: + if l in res: + res.remove(l) + res.append(l) + return " ".join(["-l" + l for l in res]) ctx( target = 'libmpv/mpv.pc', |