From 6f6f34b457927c220b459e881d8bc66115908e91 Mon Sep 17 00:00:00 2001 From: Hubert Badocha Date: Tue, 10 Sep 2024 13:55:43 +0200 Subject: [PATCH] shared.mk: strip shared libs in fs JIRA: RTOS-664 --- shared.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shared.mk b/shared.mk index 8eda9880..fa992ea4 100644 --- a/shared.mk +++ b/shared.mk @@ -39,9 +39,10 @@ LOCAL_INSTALL_PATH := $(or $(LOCAL_INSTALL_PATH),$(DEFAULT_INSTALL_PATH_SO)) install-shared: $(PREFIX_SO)$(REALNAME) $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/$(REALNAME) install-shared-libs - +# Install and strip binary $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/$(REALNAME): $(PREFIX_SO)$(REALNAME) $(INSTALL_FS) + $(STRIP) $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/$(REALNAME) install-shared-libs: $(PREFIX_SO)$(REALNAME) install-libs $(SIL)(cd $(LIBC_INSTALL_DIR) && \ @@ -74,8 +75,8 @@ rootfs-install-shared-toolchain-libs install-shared-toolchain-libs: TOOLCHAIN_LI # TODO: do not hardcode versions of libs rootfs-install-shared-toolchain-libs: $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/$(REALNAME) - $(SIL)cp $(TOOLCHAIN_LIBS_PATH)/libstdc++.so.6.28 $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH) - $(SIL)cp $(TOOLCHAIN_LIBS_PATH)/libgcc_s.so.1 $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH) + $(SIL)$(STRIP) $(TOOLCHAIN_LIBS_PATH)/libstdc++.so.6.28 -o $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/libstdc++.so.6.28 + $(SIL)$(STRIP) $(TOOLCHAIN_LIBS_PATH)/libgcc_s.so.1 -o $(PREFIX_ROOTFS)$(LOCAL_INSTALL_PATH)/libgcc_s.so.1 install-shared-toolchain-libs: install-shared-libs