Blame SOURCES/core-setup-do-not-strip.patch

af9764
--- a/src/settings.cmake
af9764
+++ b/src/settings.cmake
af9764
@@ -69,55 +69,10 @@
af9764
     endif (CMAKE_SYSTEM_NAME STREQUAL Darwin)
af9764
 endif ()
af9764
 
af9764
-function(strip_symbols targetName outputFilename)
af9764
-    if(CLR_CMAKE_PLATFORM_UNIX)
af9764
-        if(STRIP_SYMBOLS)
af9764
-
af9764
-            # On the older version of cmake (2.8.12) used on Ubuntu 14.04 the TARGET_FILE
af9764
-            # generator expression doesn't work correctly returning the wrong path and on
af9764
-            # the newer cmake versions the LOCATION property isn't supported anymore.
af9764
-            if(CMAKE_VERSION VERSION_EQUAL 3.0 OR CMAKE_VERSION VERSION_GREATER 3.0)
af9764
-                set(strip_source_file $<TARGET_FILE:${targetName}>)
af9764
-            else()
af9764
-                get_property(strip_source_file TARGET ${targetName} PROPERTY LOCATION)
af9764
-            endif()
af9764
-
af9764
-            if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
af9764
-                set(strip_destination_file ${strip_source_file}.dwarf)
af9764
-
af9764
-                add_custom_command(
af9764
-                    TARGET ${targetName}
af9764
-                    POST_BUILD
af9764
-                    VERBATIM 
af9764
-                    COMMAND ${DSYMUTIL} --flat --minimize ${strip_source_file}
af9764
-                    COMMAND ${STRIP} -u -r ${strip_source_file}
af9764
-                    COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file}
af9764
-                )
af9764
-            else(CMAKE_SYSTEM_NAME STREQUAL Darwin)
af9764
-                set(strip_destination_file ${strip_source_file}.dbg)
af9764
-
af9764
-                add_custom_command(
af9764
-                    TARGET ${targetName}
af9764
-                    POST_BUILD
af9764
-                    VERBATIM 
af9764
-                    COMMAND ${OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file}
af9764
-                    COMMAND ${OBJCOPY} --strip-unneeded ${strip_source_file}
af9764
-                    COMMAND ${OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file}
af9764
-                    COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file}
af9764
-                )
af9764
-            endif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
af9764
-
af9764
-            set(${outputFilename} ${strip_destination_file} PARENT_SCOPE)
af9764
-        endif(STRIP_SYMBOLS)
af9764
-    endif(CLR_CMAKE_PLATFORM_UNIX)
af9764
-endfunction()
af9764
-
af9764
 function(install_symbols targetName destination_path)
af9764
     if(WIN32)
af9764
         install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${targetName}.pdb DESTINATION ${destination_path})
af9764
     else()
af9764
-        strip_symbols(${targetName} strip_destination_file)
af9764
-        install(FILES ${strip_destination_file} DESTINATION ${destination_path})
af9764
     endif()
af9764
 endfunction()
af9764