Skip to content

Add -fvisibility=hidden to macOS/Linux build - #1426

Merged
yongtang merged 2 commits into
tensorflow:masterfrom
yongtang:tryx
May 17, 2021
Merged

yongtang merged 2 commits into
tensorflow:masterfrom
yongtang:tryx

Conversation

@yongtang

Copy link
Copy Markdown
Member

This PR adds -fvisibility=hidden to macOS/Linux build, so that local symbols will not be exposed.

This PR patches aws-cpp-sdk and azure lite sdk as both uses tinyxml2 and incorrectly exposes TinyXML API.

The end result is that now libtensorflow_io_plugins.so and libtensorflow_io_gcs_filesystem.so only exposes TF_InitPlugin function. (net reduction of almost 1000+ APIs un-exposed).

Signed-off-by: Yong Tang [email protected]

yongtang added 2 commits May 16, 2021 18:20
Signed-off-by: Yong Tang <[email protected]>
Signed-off-by: Yong Tang <[email protected]>
@yongtang
yongtang merged commit 47b283e into tensorflow:master May 17, 2021
@yongtang
yongtang deleted the tryx branch May 17, 2021 03:15
dopiera pushed a commit to Unoperate/tensorflow_io that referenced this pull request Dec 3, 2021
* fvisibility=hidden

Signed-off-by: Yong Tang <[email protected]>

* Expose necessary API

Signed-off-by: Yong Tang <[email protected]>
zheolong pushed a commit to zheolong/io-1 that referenced this pull request Jul 24, 2025
* fvisibility=hidden

Signed-off-by: Yong Tang <[email protected]>

* Expose necessary API

Signed-off-by: Yong Tang <[email protected]>
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