From 7bb5305d1be68577467cd9911cbb22cdf3bab5b1 Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Tue, 5 Apr 2016 13:18:45 -0700 Subject: [PATCH] Leave function name symbols in binaries when stripping out debug information. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a4e1e4..57951e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -303,7 +303,7 @@ function(strip_symbols targetName outputFilename) POST_BUILD VERBATIM COMMAND ${OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file} - COMMAND ${OBJCOPY} --strip-unneeded ${strip_source_file} + COMMAND ${OBJCOPY} --strip-debug ${strip_source_file} COMMAND ${OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file} COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file} ) -- 2.7.4