Skip to content

pkg-config files of ffmpeg package contain -ldl #25746

@madebr

Description

@madebr

Description / Steps to reproduce the issue

The pkg-config files of ffmpeg have -ldl in their Libs.Private section, resulting in a link error

(-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

error on ci

Verification

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions