Skip to content

Conversation

Demonese
Copy link

Although libopusfile can be compiled into a shared library, it lacks symbol exports, which has troubled me for a long time.

So I write this PR.

@Demonese Demonese force-pushed the feature/shared-library-exports branch from 277b14d to 1619a82 Compare June 25, 2025 07:43
Comment on lines +136 to +138
# elif defined(__GNUC__)
# define OP_LIBRARY_API __attribute__((visibility("default")))
# endif

Choose a reason for hiding this comment

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

Why is this part for GNUC needed?

Copy link
Author

Choose a reason for hiding this comment

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

$<$<C_COMPILER_ID:Clang,GNU>:-fvisibility=hidden>

$<$<C_COMPILER_ID:Clang,GNU>:-fvisibility=hidden>

Because visibility is hidden by default.

@petterreinholdtsen
Copy link

The set of changes look good to me. I only wonder about the need for changes when using GNUC.

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