1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/core
Andy Green 5c7b5af92a cmake: disable export visibility when building lws static
This is complicated by the fact extern on a function declaration implies
visibility... we have to make LWS_EXTERN empty when building static.

And, setting target_compile_definitions() doesn't work inside macros,
so it has to be set explicitly for the plugins.

Checking the symbol status needs nm -C -D as per

https://stackoverflow.com/questions/37934388/symbol-visibility-not-working-as-expected

after this patch, libwebsockets.a shows no symbols when checked like that and
the static-linked minimal examples only show -U for their other dynamic
imports.

In a handful of cases we use LWS_EXTERN on extern data declarations,
those then need to change to explicit extern.
2020-09-06 11:46:25 +01:00
..
alloc.c lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
buflist.c windows: clean type warnings 2020-01-11 14:04:50 +00:00
CMakeLists.txt deprecation: remove lws_dll1 2020-06-02 08:37:10 +01:00
context.c smp: lws_mutex_refcount: add assert held helper 2020-08-31 16:51:37 +01:00
libwebsockets.c smp: lws_mutex_refcount: add assert held helper 2020-08-31 16:51:37 +01:00
logs.c lws_spawn: windows 2020-04-13 19:29:09 +01:00
lws_dll2.c lws_dll2: add helper for typed object name from owner list 2020-07-09 15:30:34 +01:00
private-lib-core.h cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
vfs.c cleaning 2020-01-05 22:17:58 +00:00