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

Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better #411

Merged
merged 1 commit into from
Sep 19, 2011

Conversation

boyski
Copy link

@boyski boyski commented Sep 19, 2011

While building libgit2 on an old linux machine using gcc 3.2.3 I found that gcc 3.x does not support attribute((visibility)). This is a patch to allow libgit2 to build with gcc3.

Note: there's a similar problem that -Wextra isn't recognized by gcc3. I hacked around this but don't know enough about CMake to submit a patch for it.

vmg added a commit that referenced this pull request Sep 19, 2011
Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
@vmg vmg merged commit e311519 into libgit2:development Sep 19, 2011
@vmg
Copy link
Member

vmg commented Sep 19, 2011

Thank you! It's always nice to support older compilers... I'm gonna look into the CMake issue. I don't think there's a standard way to detect compiler version from CMake.

phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
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