Skip to content

boost: respect prefer_static when selecting libraries - #16081

Open
subotac wants to merge 1 commit into
mesonbuild:masterfrom
subotac:fix/boost-prefer-static
Open

boost: respect prefer_static when selecting libraries#16081
subotac wants to merge 1 commit into
mesonbuild:masterfrom
subotac:fix/boost-prefer-static

Conversation

@subotac

@subotac subotac commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #15458.

When static is omitted, Boost keeps both static and shared candidates, but ABI selection did not account for the effective library preference.

Select the first ABI set that fully covers the requested binary modules, trying the preferred library type before the fallback type. Explicit static selection remains strict, and header-only modules do
not affect completeness.

The regression test covers both preferences, explicit selection, single-variant fallback, header-only modules, and incomplete-preferred/complete-fallback sets.

@subotac
subotac requested a review from jpakkane as a code owner August 7, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Boost dependencies do not respect -Dprefer_static=true

1 participant