Hide libwebrtc symbols
Created attachment 419144 [details] Patch
Michael, Can you confirm if this works in Fedora?
Clever idea... I didn't get to it today, but will try soon.
Comment on attachment 419144 [details] Patch I wonder if this would work: set_target_properties(webrtc PROPERTIES CXX_VISIBILITY_PRESET hidden) set_target_properties(webrtc PROPERTIES C_VISIBILITY_PRESET hidden)
Created attachment 419277 [details] Patch
(In reply to Michael Catanzaro from comment #4) > Comment on attachment 419144 [details] > Patch > > I wonder if this would work: > > set_target_properties(webrtc PROPERTIES CXX_VISIBILITY_PRESET hidden) > set_target_properties(webrtc PROPERTIES C_VISIBILITY_PRESET hidden) It does :)
Comment on attachment 419277 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=419277&action=review (Still hoping to test this out soon.) > Source/ThirdParty/libwebrtc/CMakeLists.txt:1429 > +if (UNIX AND COMPILER_IS_GCC_OR_CLANG) This probably isn't needed, right? The point of using CMake's builtin properties is to ensure you don't need to worry about platform-specific details.
Comment on attachment 419277 [details] Patch Tested and confirmed fixed. I think it can safely be done unconditionally though since libwebrtc stuff should never be exported. Eventually we should try to properly fix bug #181916. In the meantime... this was good thinking. ;)
Created attachment 419298 [details] Patch
Created attachment 419299 [details] Patch
This CMake-only fix has a title wording that makes it sound like it works for all platforms and build systems. Maybe add a [CMake] prefix?
(In reply to Darin Adler from comment #11) > This CMake-only fix has a title wording that makes it sound like it works > for all platforms and build systems. Maybe add a [CMake] prefix? Yes, I have added the tag to the bug title. Victor, could you please update the ChangeLog and reupload? Even when we should aim to build everything with hidden visibility as the default (bug #181916), this is a no-brainer stopgap measure for libwebrtc and I think we should land this patch :)
Created attachment 419369 [details] Patch
Committed r272413: <https://trac.webkit.org/changeset/272413> All reviewed patches have been landed. Closing bug and clearing flags on attachment 419369 [details].
<rdar://problem/74024184>