Incorrect order of LIBS #33
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ariadne/pkgconf#33
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I'm using MXE to cross-compile (and statically link to) FFmpeg and other libraries. On FreeBSD (which recently switched to
pkgconf
) the order ofLIBS
flags is incorrect which leads to numerousundefined reference to ...
errors during linking. On Debian Sid (which usespkg-config
) the order is correct and linking works.Relevant
configure.ac
snippet:LIBS
withpkgconf
, snippet fromconfig.log
:LIBS
withpkg-config
, snippet fromconfig.log
:The correct dependency order is
avformat → avcodec → avutil
, withpkgconf
it's reversed.Please let me know if you need additional info.
Probably caused by the pkg_queue_compile stuff. I'll get it done for pkgconf 0.8.6.
I am not able to reproduce this locally, can you provide --digraph output for the problem "libavformat >= 52.111 libavcodec >= 52.123 libavutil"?
I test case to reproduce the issue (I ran this on Debian Sid):
Stock
pkg-config
returns correct LIBS: