[FFmpeg-devel] [PATCH] configure: autodetect libglslang ldflags

Matthew White mehw.is.me at inventati.org
Mon Jan 22 20:49:45 EET 2024


> This is very very cursed. Fitting for the public API of the world's fifth worst library.
> Debian is stuck on version 13, so the majority of users are still stuck on version 13.
> Debian ships a pkg-config file, but of course it's incorrect, if you try to compile against it.
> Oh, and libshaderc in Debian ships with a bug such that it segfaults on init, so it's
> not like you can avoid that. And that package's pkg-config file got broken in the past.
> 
> I think this is fine for now. I'll let it be discussed for a few more days before merging it.

Thanks for explaining.

By the way, the patch of mine is just a quick fix to not break the FFmpeg's configuration
process when enabling glslang, `./configure --enable-libglslang`, while either libglslang
up to release 13.1.1 or since 14.0.0 is installed in the system.

Accepting only glslang version 14.0.0 and above (--enable-libglslang) will obsolete this
patch: stub flags/libraries "-lOSDependent -lHLSL -lOGLCompiler" may just be dropped.

If useful, this patch is trivial even to backport, I am currently applying it to v6.1.1.


More information about the ffmpeg-devel mailing list