Add linker magic to non-Windows standalone RyuJIT build to make PAL work better when...
authorBruce Forstall <brucefo@microsoft.com>
Sat, 27 Feb 2016 01:40:23 +0000 (17:40 -0800)
committerBruce Forstall <brucefo@microsoft.com>
Sat, 27 Feb 2016 03:24:31 +0000 (19:24 -0800)
src/jit/standalone/CMakeLists.txt

index b0b2a02..ba987b4 100644 (file)
@@ -4,6 +4,11 @@ add_definitions(-DSELF_NO_HOST)
 add_definitions(-DFEATURE_READYTORUN_COMPILER)
 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(ryujit
    SHARED
    ${SHARED_LIB_SOURCES}