1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/lwsws
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
..
CMakeLists.txt cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
etc-logrotate.d-lwsws logs document logrotate configuration for lwsws 2016-04-26 19:07:17 +08:00
etc-lwsws-conf-EXAMPLE ws ping pong on idle connections 2016-08-10 21:20:23 +08:00
etc-lwsws-conf.d-localhost-EXAMPLE lwsws: change the example to not bind to lo 2018-04-06 10:38:03 +08:00
main.c static build: lwsws 2020-09-01 08:10:06 +01:00
usr-lib-systemd-system-lwsws.service lwsws: logging: use stderr not syslog directly 2018-09-11 18:27:59 +08:00