add_compile_options(-fPIC)
endif()
+add_compile_options(-fvisibility=hidden)
+
include(../setup.cmake)
# Include directories
project(apphost)
set(DOTNET_HOST_EXE_NAME "apphost")
+add_compile_options(-fvisibility=hidden)
+
# Add RPATH to the apphost binary that allows using local copies of shared libraries
# dotnet core depends on for special scenarios when system wide installation of such
# dependencies is not possible for some reason.
cmake_minimum_required (VERSION 2.6)
project(dotnet)
set(DOTNET_HOST_EXE_NAME "dotnet")
+add_compile_options(-fvisibility=hidden)
set(SOURCES
../../fxr/fx_ver.cpp)
include(../exe.cmake)
add_compile_options(-fPIC)
endif()
+add_compile_options(-fvisibility=hidden)
+
include(../setup.cmake)
# Include directories
#else
#ifdef COREHOST_MAKE_DLL
- #define SHARED_API extern "C"
+ #define SHARED_API extern "C" __attribute__((__visibility__("default")))
#else
#define SHARED_API
#endif