Skip to content

Feature: Add shared library exports #59

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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