Visibility of brotli APIs on Unix #239

Closed
opened 2026-01-29 20:40:31 +00:00 by claunia · 4 comments
Owner

Originally created by @ghost on GitHub (Jun 19, 2018).

For Unix, we had to apply this patch to set the visibility of BROTLI_ENC_API dotnet/corefx@0c770ca72d. This happens when downstream is compiling with -fvisibility=hidden. We have out-of-the-tree cmake file that includes Brotli's sources.

@eustas, could this patch be also considered for Brotli vNext? AFAICT, there are no ramifications of this change, when the consumer doesn't have -fvisibility set.

Originally created by @ghost on GitHub (Jun 19, 2018). For Unix, we had to apply this patch to set the visibility of BROTLI_ENC_API dotnet/corefx@0c770ca72daf50ad12703b175dcb83e306664ba6. This happens when downstream is compiling with `-fvisibility=hidden`. We have out-of-the-tree cmake file that includes Brotli's sources. @eustas, could this patch be also considered for Brotli vNext? AFAICT, there are no ramifications of this change, when the consumer doesn't have `-fvisibility` set.
Author
Owner

@eustas commented on GitHub (Jun 19, 2018):

Sure. Perhaps with a little bit different enclosure, i.e.

if shared
  if win32
    XXX
  else
    YYY
else
  ZZZ
@eustas commented on GitHub (Jun 19, 2018): Sure. Perhaps with a little bit different enclosure, i.e. ``` if shared if win32 XXX else YYY else ZZZ ```
Author
Owner

@ghost commented on GitHub (Jun 19, 2018):

That would certainly improve readability. 👍

@ghost commented on GitHub (Jun 19, 2018): That would certainly improve readability. 👍
Author
Owner

@eustas commented on GitHub (Jun 20, 2018):

Should be fixed with #688

@eustas commented on GitHub (Jun 20, 2018): Should be fixed with #688
Author
Owner

@ghost commented on GitHub (Jun 20, 2018):

Thanks! Waiting for the next release 👏

@ghost commented on GitHub (Jun 20, 2018): Thanks! Waiting for the next release 👏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#239