summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-29 18:30:24 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:16 +0900
commit4759f61e73a5ad2880394c7a5023179aa25d4a0a (patch)
treef5f2014c9f6771aef9d25ecdc1035a4a725a0ebe
parent1a346ce11b9dfe5f3eb5928ac50973dd3d818167 (diff)
downloadmpv-4759f61e73a5ad2880394c7a5023179aa25d4a0a.tar.bz2
mpv-4759f61e73a5ad2880394c7a5023179aa25d4a0a.tar.xz
build: fix linking with --enable-static-build
-rw-r--r--wscript_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 0f14eb542f..07b67ce31f 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -431,7 +431,7 @@ def build(ctx):
ctx(
target = "mpv",
source = "player/main_fn.c",
- use = 'objects',
+ use = ctx.dependencies_use() + ['objects'],
includes = _all_includes(ctx),
features = "c cprogram",
install_path = ctx.env.BINDIR
@@ -459,7 +459,7 @@ def build(ctx):
ctx(
target = os.path.splitext(test.srcpath())[0],
source = test.srcpath(),
- use = "objects",
+ use = ctx.dependencies_use() + ['objects'],
includes = _all_includes(ctx),
features = "c cprogram",
)