[ffms2.pc.in] Add -DFFMS_STATIC to Cflags.private#466
Conversation
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
|
How does this behave with normal pkg-config? Is it ignored or does it cause an error? Using non-standard pkg-config stuff seems iffy to me (pkg-config defines .pc, not pkgconf, IMO...) |
|
I believe it ignore the flag, but i dont have any proof. @TheOneric Do you the answer to dwbuiten question? |
|
pkg-config simply ignores the additional field. For testing, e.g. Haiku or pkgsrc still provide the original pkg-config, but many distros dropped it by now since it is efffecively abandoned. There have been no commits in over 4 years and almost no responses from maintainers to issues or patches for years too. You can find e.g. my PR to implement There are also other, more niche pkg-config implementations from e.g. OpenBSD and projects independent of any distro. Otoh I cannot say whether they parse this field or not; I doubt they’ll error on it though. I agree In practice |
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.privateis only supported by pkgconf. The original pkg-config has an feature request about this: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/38