[source] sdk: do not strip static libraries

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 18 07:13:26 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/29a4a17f55e1c6ef8c50370766160a92233813b5

commit 29a4a17f55e1c6ef8c50370766160a92233813b5
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Wed Jan 18 03:15:31 2017 +0100

    sdk: do not strip static libraries
    
    Do not strip static libraries shipped with the SDK in order to preserve the
    archive index. If we strip the index of the shipped libraries, host programs
    will fail to link these libraries with errors like:
    
        libssl.a: error adding symbols: Archive has no index; run ranlib to add one
    
    The error was found while investigating a Python host build failure within
    the SDK environment.
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 target/sdk/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index e9599c3..496f025 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -92,7 +92,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean
 		find \
 			$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/lib \
 			$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/usr/lib \
-			-type f -name \*.so\* -or -name \*.a; \
+			-type f -name \*.so\*; \
 	) | xargs strip 2>/dev/null >/dev/null
 
 	mkdir -p $(SDK_BUILD_DIR)/target/linux



More information about the lede-commits mailing list