Skip to content

Commit

Permalink
shared.mk: strip shared libs in fs
Browse files Browse the repository at this point in the history
JIRA: RTOS-664
  • Loading branch information
badochov committed Sep 10, 2024
1 parent edf6a46 commit 6f6f34b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shared.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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) && \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f6f34b

Please sign in to comment.