1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/misc
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
..
fts lws_struct sqlite3 2020-03-04 11:00:04 +00:00
lwsac logs: allow giving log bitfields from cmake to force build or exclusion 2020-04-22 06:59:01 +01:00
threadpool mingw: fix for different sockfd type in udp example 2020-06-06 15:53:58 +01:00
base64-decode.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
CMakeLists.txt lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
daemonize.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
dir.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
diskcache.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
fsmount.c fsmount: delete session dir on mount 2020-03-05 14:12:24 +00:00
getifaddrs.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
getifaddrs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
lejp.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
lws-ring.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
lws-struct-lejp.c struct-lejp: handle no path match 2020-07-15 16:18:00 +01:00
lws-struct-sqlite.c sai: update to new tuple format 2020-06-05 08:33:51 +01:00
peer-limits.c PEER_LIMITS: modernize to sa46 and add notification cb 2020-06-02 08:37:10 +01:00
romfs.c linkit: support build using public sdk 2020-01-17 07:45:34 +00:00
romfs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
sha-1.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00