From 5d99b9c5fc1b45ee118b5c4852164a5294aaf420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= Date: Wed, 30 Jul 2025 14:43:05 -0400 Subject: [PATCH] contrib: hide FFmpeg symbols https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1944 Change-Id: Ic85446b5b14dd93d74896245b3a02375d5641bfc --- contrib/src/ffmpeg/rules.mak | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak index eff794992..acae7f661 100644 --- a/contrib/src/ffmpeg/rules.mak +++ b/contrib/src/ffmpeg/rules.mak @@ -420,6 +420,12 @@ FFMPEGCONF += --target-os=mingw32 \ --enable-encoder=hevc_nvenc endif +# Prevent the daemon from exposing FFmpeg symbols. +# This matters for Jami's Qt client because Qt links against FFmpeg and +# we want to avoid ABI compatibility issues in case the version of FFmpeg +# expected by Qt is not the same as the one used by the daemon. +CFLAGS += -fvisibility=hidden + $(TARBALLS)/ffmpeg-$(FFMPEG_HASH).tar.xz: $(call download,$(FFMPEG_URL))