From a2efb1c2fa58ac596a36cd98e550676792030651 Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 21 Mar 2022 20:10:09 +0100 Subject: [PATCH] Strip in a different way --- cmake/strip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/strip.sh b/cmake/strip.sh index 0b9ee667ba0..d4dcd770e6d 100755 --- a/cmake/strip.sh +++ b/cmake/strip.sh @@ -17,6 +17,6 @@ mkdir -p "$DESTINATION_DEBUG_INFO_DIR/$BUILD_ID_PREFIX" mkdir -p "$DESTINATION_STRIP_BINARY_DIR" $OBJCOPY_PATH --only-keep-debug "$BINARY_PATH" "$DESTINATION_DEBUG_INFO_DIR/$BUILD_ID_PREFIX/$BUILD_ID_SUFFIX.debug" - -$OBJCOPY_PATH --strip-debug "$BINARY_PATH" "$DESTINATION_STRIP_BINARY_DIR/$BINARY_NAME" +cp "$BINARY_PATH" "$DESTINATION_STRIP_BINARY_DIR/$BINARY_NAME" +strip --strip-all "$DESTINATION_STRIP_BINARY_DIR/$BINARY_NAME" $OBJCOPY_PATH --add-gnu-debuglink "$DESTINATION_DEBUG_INFO_DIR/$BUILD_ID_PREFIX/$BUILD_ID_SUFFIX.debug" "$DESTINATION_STRIP_BINARY_DIR/$BINARY_NAME"