From dce413970e9ae0cd3a93397fb08081dafb7a0329 Mon Sep 17 00:00:00 2001 From: Migration Bot Date: Fri, 24 Apr 2026 15:00:04 +0530 Subject: [PATCH] [BB PR #37] pkgconfig: Make all libs public if static build (migrated from Bitbucket) --- .migration-bb-pr-37.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .migration-bb-pr-37.md diff --git a/.migration-bb-pr-37.md b/.migration-bb-pr-37.md new file mode 100644 index 000000000..fde19dfa5 --- /dev/null +++ b/.migration-bb-pr-37.md @@ -0,0 +1,12 @@ +# Migrated from Bitbucket PR #37 + +**Title:** pkgconfig: Make all libs public if static build +**Author:** Rob Hall +**State:** OPEN +**Created:** 2025-08-19 +**Original PR:** https://bitbucket.org/multicoreware/x265_git/pull-requests/37 +**Original Diff:** https://api.bitbucket.org/2.0/repositories/multicoreware/x265_git/diff/robxnano/x265_git:9a78de495eb1%0Dcfee9638c82b?from_pullrequest_id=37&topic=true + +## Description + +If x265 is built as a static library, an application which tries to build with it using pkg-config may fail to link correctly as the pc file lists its required libraries in Libraries.private. The application has no way of knowing that it needs to link against these libraries, so the build fails. To fix this, the required libraries should be listed in the public Libraries section if a static build is requested. This is the same approach as used by ffmpeg, x264, and all Meson projects which use the built-in pc file generator.