build: fix linking with --enable-static-build

This commit is contained in:
Stefano Pigozzi 2014-12-29 18:30:24 +01:00
parent 21d93690cb
commit 20f6cf3ec6
1 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,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
@ -460,7 +460,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",
)