From 4759f61e73a5ad2880394c7a5023179aa25d4a0a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 29 Dec 2014 18:30:24 +0100 Subject: [PATCH] build: fix linking with --enable-static-build --- wscript_build.py | 4 ++-- 1 file 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", )