-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
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
-ldl
inLibs.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
- 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
- MINGW64
- MINGW32
- UCRT64
- CLANG64
- CLANGARM64
Are you willing to submit a PR?
No response