Skip to content

Enable set_soname by default - #797

Open
keith wants to merge 3 commits into
bazelbuild:mainfrom
keith:ks/enable-set_soname-by-default
Open

Enable set_soname by default#797
keith wants to merge 3 commits into
bazelbuild:mainfrom
keith:ks/enable-set_soname-by-default

Conversation

@keith

@keith keith commented Jul 20, 2026

Copy link
Copy Markdown
Member

This was already the case for macOS, and doesn't always matter for
Linux, but when it does, this being not set is always wrong. If users
are overwriting this today with linkopts or post processing, this
shouldn't affect them.

This was already the case for macOS, and doesn't always matter for
Linux, but when it does, this being not set is always wrong. If users
are overwriting this today with linkopts or post processing, this
shouldn't affect them.
@keith
keith requested review from c-mita, pzembrod and trybka as code owners July 20, 2026 18:20
@keith

keith commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

the test revealed there is 1 issue with this. previously if you built the lib and copied it elsewhere and renamed it, if you manually dlopened it, things would be fine, but now that can fail if the name doesn't match. I still think this is the better default but that does mean there is more chance for breakage. luckily users doing --features=-set_soname is enough to go back to the previous behavior

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.

2 participants