Skip to content

Commit

Permalink
Change libopus to not export symbols (#1329)
Browse files Browse the repository at this point in the history
Forces OPUS_EXPORT to be defined, so that later config code does not
override the default symbol visibility.
This prevents leaking the symbols across module boundaries in modular
builds.

b/296578318

(cherry picked from commit ca33e8e)
  • Loading branch information
kaidokert committed Aug 22, 2023
1 parent 92e3e79 commit ebfa667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/opus/starboard/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ POSSIBILITY OF SUCH DAMAGE.

#define OPUS_BUILD 1

/* Don't let EXPORT to be redefined by later config code. */
#define OPUS_EXPORT

#if defined(_M_IX86) || defined(_M_X64)
/* Can always compile SSE intrinsics (no special compiler flags necessary) */
#define OPUS_X86_MAY_HAVE_SSE
Expand Down

0 comments on commit ebfa667

Please sign in to comment.