Skip to content

Add GCC support for compiling with hidden visibility#89

Closed
roehling wants to merge 1 commit intoeProsima:masterfrom
fkie-forks:gcc-visibility-support
Closed

Add GCC support for compiling with hidden visibility#89
roehling wants to merge 1 commit intoeProsima:masterfrom
fkie-forks:gcc-visibility-support

Conversation

@roehling
Copy link
Copy Markdown
Contributor

GCC hidden visibility closely mimics the Windows DLL import/export
feature, which cleans up the symbol export table and leads to faster
startup times as well as a more stable ABI.

This PR has no immediate effect until GCC is instructed to hide symbols
with -fvisibility=hidden -fvisibility-inlines-hidden. I did not enable
this yet because unlike MSVC, GCC does not export type info and vtables
by default, so this PR depends on #88 to work.

Signed-off-by: Timo Röhling [email protected]

GCC hidden visibility closely mimics the Windows DLL import/export
feature, which cleans up the symbol export table and leads to faster
startup times as well as a more stable ABI.

This PR has no immediate effect until GCC is instructed to hide symbols
with -fvisibility=hidden -fvisibility-inlines-hidden. I did not enable
this yet because unlike MSVC, GCC does not export type info and vtables
by default, so this PR depends on eProsima#88 to work.

Signed-off-by: Timo Röhling <[email protected]>
@roehling roehling force-pushed the gcc-visibility-support branch from 7afdd00 to 133ba78 Compare November 24, 2020 10:23
@richiware
Copy link
Copy Markdown
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@richiprosima
Copy link
Copy Markdown
Contributor

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@JLBuenoLopez JLBuenoLopez added this to the v1.1.0 milestone Mar 16, 2023
@EduPonz
Copy link
Copy Markdown

EduPonz commented Jun 8, 2023

I'm closing this, as we will not be tackling it at the moment. I have open #149 to track these ideas, suggestions and comments are most welcomed!

@EduPonz EduPonz closed this Jun 8, 2023
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.

5 participants