Commit 71cd6e62 authored by Max Kellermann's avatar Max Kellermann

lib/xiph/meson.build: define FLAC__NO_DLL for static libFLAC build (Windows)

In libFLAC 0.3.4 (commit c9530118), the "dllimport" check has been changed from "_MSC_VER" to "_WIN32", and now the MPD build is affected by it. Defining FLAC__NO_DLL disables the use of "dllimport", which allows linking properly to the static libFLAC build.
parent c8329491
libflac_dep = dependency('flac', version: '>= 1.2', required: get_option('flac'))
if is_windows
# Our Windows build generates a static libFLAC build
libflac_dep = declare_dependency(compile_args: '-DFLAC__NO_DLL',
dependencies: libflac_dep)
endif
libopus_dep = dependency('opus', required: get_option('opus'))
if get_option('tremor').enabled()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment