Skip to content

[CORE] Hide gflags namespace symbols in native core#12536

Open
wangxinshuo-bolt wants to merge 1 commit into
apache:mainfrom
wangxinshuo-bolt:pr/core-jni-dso-isolation
Open

[CORE] Hide gflags namespace symbols in native core#12536
wangxinshuo-bolt wants to merge 1 commit into
apache:mainfrom
wangxinshuo-bolt:pr/core-jni-dso-isolation

Conversation

@wangxinshuo-bolt

@wangxinshuo-bolt wangxinshuo-bolt commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

The native core already links gflags, but its implementation is usually built in the google namespace, which is already hidden by the version script. The gflags namespace is normally only an alias and does not introduce additional symbols.

However, when gflags is built with gflags as its primary namespace, those symbols may be exported. This PR hides gflags::* as well, making the symbol isolation work for both configurations.

How was this patch tested?

  • Used readelf/nm to verify that gflags namespace symbols are not exported from the resulting shared library.

Was this patch authored or co-authored using generative AI tooling?

Yes.

Generated-by: Codex GPT-5

@github-actions github-actions Bot added the VELOX label Jul 16, 2026
@wangxinshuo-bolt
wangxinshuo-bolt marked this pull request as ready for review July 16, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant