diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-05-24 16:00:37 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-05-25 12:47:06 -0700 |
commit | 3ea0ad01345fccfbb7eb07da64f91cddb150b82c (patch) | |
tree | 68f9c0d22e30c708c4f99995be61bb5a48091fa1 /src/jit/protojit | |
parent | bdd7edfa55ea2bdd922f4a94609fa15d674bed73 (diff) | |
download | coreclr-3ea0ad01345fccfbb7eb07da64f91cddb150b82c.tar.gz coreclr-3ea0ad01345fccfbb7eb07da64f91cddb150b82c.tar.bz2 coreclr-3ea0ad01345fccfbb7eb07da64f91cddb150b82c.zip |
Limit the exports of libclrjit.{so,dylib}.
Properly set the necessary linker options to limit libclrjit's exports
on *nix platforms. This change also includes some minor cleanup to the
JIT's various CMake list files.
Diffstat (limited to 'src/jit/protojit')
-rw-r--r-- | src/jit/protojit/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jit/protojit/CMakeLists.txt b/src/jit/protojit/CMakeLists.txt index f5b55ab7e9..e3cc769ba0 100644 --- a/src/jit/protojit/CMakeLists.txt +++ b/src/jit/protojit/CMakeLists.txt @@ -5,16 +5,16 @@ add_definitions(-DFEATURE_NO_HOST) add_definitions(-DSELF_NO_HOST) remove_definitions(-DFEATURE_MERGE_JIT_AND_ENGINE) -if(CLR_CMAKE_PLATFORM_LINUX OR CLR_CMAKE_PLATFORM_NETBSD) - # This is required to force using our own PAL, not one that we are loaded with. - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Xlinker -Bsymbolic -Bsymbolic-functions") -endif(CLR_CMAKE_PLATFORM_LINUX OR CLR_CMAKE_PLATFORM_NETBSD) - add_library_clr(protojit SHARED ${SHARED_LIB_SOURCES} ) +add_dependencies(protojit jit_exports) + +set_property(TARGET protojit APPEND_STRING PROPERTY LINK_FLAGS ${JIT_EXPORTS_LINKER_OPTION}) +set_property(TARGET protojit APPEND_STRING PROPERTY LINK_DEPENDS ${JIT_EXPORTS_FILE}) + set(RYUJIT_LINK_LIBRARIES utilcodestaticnohost gcinfo |