summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-05-22 14:41:17 +0200
committerSimon Rettberg2018-05-22 14:41:17 +0200
commiteb589df8b40a662557d002e61684c2d76dda750f (patch)
treee286ebcbf8b0bf44e92c80ecb34b7f293882f301
parent[pvs2] Catch and send core dumps (diff)
downloadmltk-eb589df8b40a662557d002e61684c2d76dda750f.tar.gz
mltk-eb589df8b40a662557d002e61684c2d76dda750f.tar.xz
mltk-eb589df8b40a662557d002e61684c2d76dda750f.zip
Do not strip binaries in /opt/openslx/s?bin
-rwxr-xr-xcore/bin/setup_target3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/bin/setup_target b/core/bin/setup_target
index fbe04f92..365f24db 100755
--- a/core/bin/setup_target
+++ b/core/bin/setup_target
@@ -592,7 +592,8 @@ strip_recursive() {
local DIR="$1"
[ -n "$DIR" -a -d "$DIR" ] || perror "strip_recursive(): No such directory: '$DIR'"
# Will try to strip shell scripts too but shouldn't do any harm
- find "$DIR" -type f -a \( -executable -o -name "*.so*" \) -exec strip {} \; 2> /dev/null
+ # Ignore anything we compile ourselves so we have usable core dumps
+ find "$DIR" -type f \! -path "*openslx*bin*" -a \( -executable -o -name "*.so*" \) -exec strip {} \; 2> /dev/null
}
# copies static data files from <MODULE>/data/ to <TARGET_BUILD_DIR>