mirror of https://github.com/mpv-player/mpv
build: fix linking with --enable-static-build
This commit is contained in:
parent
21d93690cb
commit
20f6cf3ec6
|
@ -432,7 +432,7 @@ def build(ctx):
|
||||||
ctx(
|
ctx(
|
||||||
target = "mpv",
|
target = "mpv",
|
||||||
source = "player/main_fn.c",
|
source = "player/main_fn.c",
|
||||||
use = 'objects',
|
use = ctx.dependencies_use() + ['objects'],
|
||||||
includes = _all_includes(ctx),
|
includes = _all_includes(ctx),
|
||||||
features = "c cprogram",
|
features = "c cprogram",
|
||||||
install_path = ctx.env.BINDIR
|
install_path = ctx.env.BINDIR
|
||||||
|
@ -460,7 +460,7 @@ def build(ctx):
|
||||||
ctx(
|
ctx(
|
||||||
target = os.path.splitext(test.srcpath())[0],
|
target = os.path.splitext(test.srcpath())[0],
|
||||||
source = test.srcpath(),
|
source = test.srcpath(),
|
||||||
use = "objects",
|
use = ctx.dependencies_use() + ['objects'],
|
||||||
includes = _all_includes(ctx),
|
includes = _all_includes(ctx),
|
||||||
features = "c cprogram",
|
features = "c cprogram",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue