From 6726b03b1406f9cf050451fd218544e6be53e6b6 Mon Sep 17 00:00:00 2001 From: MartinEesmaa Date: Mon, 3 Apr 2023 09:45:57 +1000 Subject: [PATCH] Fix FFmpeg configuration for adding -lstdc++ This will add libraries_private in libvmaf/src/meson.build to fix FFmpeg configuration issue. --- libvmaf/src/meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libvmaf/src/meson.build b/libvmaf/src/meson.build index 94e2f4d7b..5dd4d34d2 100644 --- a/libvmaf/src/meson.build +++ b/libvmaf/src/meson.build @@ -497,11 +497,17 @@ libvmaf = library( install: true, ) +if compiler.get_id() == 'gcc': + libraries_private = ['-lstdc++'] +else compiler.get_id() == 'clang': + libraries_private = ['-lc++'] + pkg_mod = import('pkgconfig') pkg_mod.generate(libraries: libvmaf, version: meson.project_version(), name: 'libvmaf', filebase: 'libvmaf', description: 'VMAF, Video Multimethod Assessment Fusion', - subdirs: [ '.', 'libvmaf'] + subdirs: [ '.', 'libvmaf'], + libraries_private: libraries_private )