Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: remove gcc version check for visibility support #200

Merged
merged 2 commits into from
Mar 2, 2018

Conversation

meyerj
Copy link
Member

@meyerj meyerj commented Jan 10, 2017

The gcc version check has been updated several times (#191, #154) in the past to support newer versions and involves a fragile compiler execution using execute_process(). I think it's time to simply drop support for older versions that do not yet support visibility attributes, older than gcc 4.2 released in 2007, which introduced visibility support for types.

Note that RTT does not set the default visibility to hidden on its own (by adding the -fvisibility=hidden option) and all symbols are visible by default. Perhaps this option was even removed/commented accidentally during the refactoring in 72bc0bd.

See also https://gcc.gnu.org/wiki/Visibility.

TODO:

  • Update minimum gcc version in the installation manual to 4.2
  • Test the toolchain with the -fvisibility=hidden compile option
  • Set default visibility to hidden for RTT?

…lchain#166)

Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>
@meyerj meyerj mentioned this pull request Jan 5, 2018
@meyerj meyerj merged commit 77c1254 into orocos-toolchain:master Mar 2, 2018
@meyerj meyerj deleted the remove-gcc-version-check branch March 2, 2018 00:36
@meyerj
Copy link
Member Author

meyerj commented Mar 2, 2018

#235 follows up on the visibility issue.

meyerj added a commit to Intermodalics/rtt that referenced this pull request Jun 11, 2018
cmake: remove gcc version check for visibility support
meyerj added a commit to Intermodalics/rtt that referenced this pull request Jun 11, 2018
cmake: remove gcc version check for visibility support
meyerj added a commit to Intermodalics/rtt that referenced this pull request Jun 11, 2018
cmake: remove gcc version check for visibility support
meyerj added a commit that referenced this pull request Nov 29, 2021
cmake: remove gcc version check for visibility support
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.

1 participant