|
|
7c038d |
Do not strip native/unmanaged symbols from binaries
|
|
|
7c038d |
|
|
|
7c038d |
This is a hack. It rips out the calls to strip directly.
|
|
|
7c038d |
|
|
|
7c038d |
The correct/upstreamable fix is to add a configure/build option to
|
|
|
7c038d |
keep symbols for some builds, such as those needed by upstream.
|
|
|
7c038d |
|
|
|
7c038d |
diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake
|
|
|
7c038d |
index 8b73581ed14..7697908425e 100644
|
|
|
7c038d |
--- a/eng/native/functions.cmake
|
|
|
7c038d |
+++ b/eng/native/functions.cmake
|
|
|
7c038d |
@@ -282,7 +282,7 @@ function(target_precompile_header)
|
|
|
7c038d |
endif(MSVC)
|
|
|
7c038d |
endfunction()
|
|
|
7c038d |
|
|
|
7c038d |
-function(strip_symbols targetName outputFilename)
|
|
|
7c038d |
+function(strip_symbols_renamed targetName outputFilename)
|
|
|
7c038d |
if (CLR_CMAKE_HOST_UNIX)
|
|
|
7c038d |
set(strip_source_file $<TARGET_FILE:${targetName}>)
|
|
|
7c038d |
|
|
|
7c038d |
@@ -336,8 +336,8 @@ function(strip_symbols targetName outputFilename)
|
|
|
7c038d |
endfunction()
|
|
|
7c038d |
|
|
|
7c038d |
function(install_with_stripped_symbols targetName kind destination)
|
|
|
7c038d |
- strip_symbols(${targetName} symbol_file)
|
|
|
7c038d |
- install_symbols(${symbol_file} ${destination})
|
|
|
7c038d |
+ # strip_symbols_renamed(${targetName} symbol_file)
|
|
|
7c038d |
+ # install_symbols(${symbol_file} ${destination})
|
|
|
7c038d |
if ("${kind}" STREQUAL "TARGETS")
|
|
|
7c038d |
set(install_source ${targetName})
|
|
|
7c038d |
elseif("${kind}" STREQUAL "PROGRAMS")
|
|
|
7c038d |
@@ -375,13 +375,13 @@ function(install_clr)
|
|
|
7c038d |
foreach(targetName ${INSTALL_CLR_TARGETS})
|
|
|
7c038d |
list(FIND CLR_CROSS_COMPONENTS_LIST ${targetName} INDEX)
|
|
|
7c038d |
if (NOT DEFINED CLR_CROSS_COMPONENTS_LIST OR NOT ${INDEX} EQUAL -1)
|
|
|
7c038d |
- strip_symbols(${targetName} symbol_file)
|
|
|
7c038d |
+ # strip_symbols_renamed(${targetName} symbol_file)
|
|
|
7c038d |
|
|
|
7c038d |
foreach(destination ${destinations})
|
|
|
7c038d |
# We don't need to install the export libraries for our DLLs
|
|
|
7c038d |
# since they won't be directly linked against.
|
|
|
7c038d |
install(PROGRAMS $<TARGET_FILE:${targetName}> DESTINATION ${destination})
|
|
|
7c038d |
- install_symbols(${symbol_file} ${destination})
|
|
|
7c038d |
+ # install_symbols(${symbol_file} ${destination})
|
|
|
7c038d |
|
|
|
7c038d |
if(CLR_CMAKE_PGO_INSTRUMENT)
|
|
|
7c038d |
if(WIN32)
|