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

Add tests to check shared object contents #693

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

NWilson
Copy link
Member

@NWilson NWilson commented Feb 11, 2025

We want to ensure that the symbols included in shared object files (.so, .dylib, .dll) are as expected.

This verifies that our Autoconf and CMake builds are using the -fvisibility flags and attributes correctly.

As it turns out, the CMake build on Solaris is not working, and was exposing internal symbols due to a CMake issue.

CMAKE_VERSION VERSION_LESS 3.31 AND
CMAKE_C_COMPILER_ID STREQUAL "SunPro" AND
CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 5.15)
set(CMAKE_C_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carenas I think you know about this fix! We need to ship it in our CMakeLists, if we want to support the version of CMake that's shipped by Oracle and their latest Oracle Developer Studio.

@NWilson NWilson merged commit ce6e960 into master Feb 12, 2025
33 checks passed
@NWilson NWilson deleted the user/niwilson/nm-testing branch February 12, 2025 21:30
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