MINGW-packages
MINGW-packages copied to clipboard
pkg-config files of ffmpeg package contain `-ldl`
Description / Steps to reproduce the issue
The pkg-config files of ffmpeg have -ldl in their Libs.Private section, resulting in a link error
- Go to https://packages.msys2.org/packages/mingw-w64-x86_64-ffmpeg
- Download binary tarball
- View
mingw-w64-x86_64-ffmpeg-8.0-3-any.pkg.tar\mingw64\lib\pkgconfig\libavcodec.pc - See presence of
-ldlinLibs.private
(-ldl is also present in other ffmpeg pkg-config files)
Expected behavior
libdl is only present on unix, so -ldl should not be present
Actual behavior
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldl: No such file or directory
Verification
- [x] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
Windows Version
MINGW64_NT-10.0-26100 runnervm747y6 3.6.4-23a25d49.x86_64 2025-07-16 16:15 UTC x86_64 Msys
MINGW environments affected
- [x] MINGW64
- [ ] MINGW32
- [ ] UCRT64
- [ ] CLANG64
- [ ] CLANGARM64
Are you willing to submit a PR?
No response
Valid issue. Note though that there are likely more issues re static linking ffmpeg.
You can get libdl here: https://packages.msys2.org/base/mingw-w64-dlfcn