Clean up external symbols by changing visibility on linux/gcc

This commit is contained in:
Bart van Strien 2015-06-06 11:43:28 +02:00
parent b229059953
commit 8e0e1d2dd3
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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