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

This commit is contained in:
Stefano Pigozzi 2014-12-29 18:30:24 +01:00 committed by Diogo Franco (Kovensky)
parent 1a346ce11b
commit 4759f61e73
1 changed files with 2 additions and 2 deletions

View File

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