mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
Clean up external symbols by changing visibility on linux/gcc
This commit is contained in:
parent
b229059953
commit
8e0e1d2dd3
@ -13,8 +13,8 @@ WARN=-Wall -pedantic
|
||||
BSD_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
|
||||
BSD_LDFLAGS=-O -fPIC -shared $(LIBDIR)
|
||||
|
||||
LNX_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
|
||||
LNX_LDFLAGS=-O -fPIC -shared $(LIBDIR)
|
||||
LNX_CFLAGS=-O2 -fPIC -fvisibility=hidden $(WARN) $(INCDIR) $(DEFS)
|
||||
LNX_LDFLAGS=-O -fPIC -fvisibility=hidden -Wl,--exclude-libs,ALL -shared $(LIBDIR)
|
||||
|
||||
MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
|
||||
MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
|
||||
|
@ -9,6 +9,8 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define LSEC_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__)
|
||||
#define LSEC_API extern __attribute__((visibility ("default")))
|
||||
#else
|
||||
#define LSEC_API extern
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user