Reduce exported symbols count

This commit is contained in:
Ivan Butygin 2017-10-22 13:21:01 +03:00
parent 69c0f55966
commit 27a992ce6a
2 changed files with 6 additions and 1 deletions

View file

@ -11,7 +11,10 @@ if(LDC_RUNTIME_COMPILE)
set(JITRT_EXTRA_FLAGS "/Zl")
else()
set(JITRT_EXTRA_FLAGS "-fPIC -std=c++11")
set(JITRT_EXTRA_FLAGS "-fPIC -std=c++11 -fvisibility=hidden")
if(NOT APPLE)
set(JITRT_EXTRA_LDFLAGS "-Wl,--exclude-libs=ALL")
endif()
endif()
# Sets up the targets for building the D-source jit-rt object files,

View file

@ -429,6 +429,8 @@ extern "C" {
#ifdef _WIN32
__declspec(dllexport)
#else
__attribute__ ((visibility ("default")))
#endif
void rtCompileProcessImplSo(const void *modlist_head,
const Context *context, size_t contextSize) {