meson: rearrange library dependency order to avoid crash with fontconfig

In win32 build, if libass and libfontconfig appear after libmingwex
during linking, crash happens whenever fontconfig calls to opendir().

Moving them before ffmpeg makes sure they always appear first.

More info on https://github.com/shinchiro/mpv-winbuild-cmake/issues/217.
This commit is contained in:
Crend King
2022-06-18 15:17:46 +00:00
committed by Dudemanguy
parent c961f4d0db
commit c1a46ecfaf
+4 -2
View File
@@ -30,8 +30,10 @@ ffmpeg = {
libass = dependency('libass', version: '>= 0.12.2')
pthreads = dependency('threads')
dependencies = [ffmpeg['deps'],
libass,
# the dependency order of libass -> ffmpeg is necessary due to
# static linking symbol resolution between fontconfig and MinGW
dependencies = [libass,
ffmpeg['deps'],
pthreads]
features = [ffmpeg['name'], libass.name(), pthreads.name()]