From 51f34deae3a6812fbcabdd157798e750d57a9e5d Mon Sep 17 00:00:00 2001 From: moi15moi Date: Thu, 13 Nov 2025 17:06:14 -0500 Subject: [PATCH] [ffms2.pc.in] Add -DFFMS_STATIC to Cflags.private This allow static consumers to automatically get the FFMS_STATIC flag needed for correct symbol handling. This affects only static linking, as intended. Here is a bit more detail about Cflags.private: https://www.msys2.org/docs/pkgconfig/#cflagsprivate-static-libraries Note that `Cflags.private` is only supported by pkgconf. The original pkg-config has an feature request about this: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/38 --- ffms2.pc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ffms2.pc.in b/ffms2.pc.in index 7a2a35ee80..29a2386728 100644 --- a/ffms2.pc.in +++ b/ffms2.pc.in @@ -12,3 +12,4 @@ Version: @FFMS_VERSION@ Libs.private: @ZLIB_LDFLAGS@ -lz Libs: -L${libdir} -lffms2 Cflags: -I${includedir} +Cflags.private: -DFFMS_STATIC