package/openssl: also strip libraries with _OPENSSL_BIN is enabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Apr 2009 18:30:10 +0000 (18:30 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Apr 2009 18:30:10 +0000 (18:30 -0000)
package/openssl/openssl.mk

index 62c2f33bd3464836404acd0b00ba5a2f42b0f455..eb3e803f1e05eb50c268a756f33003775cac7fe7 100644 (file)
@@ -60,12 +60,12 @@ $(OPENSSL_HOOK_POST_INSTALL):
 ifeq ($(BR2_PACKAGE_OPENSSL_BIN),y)
        $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/openssl
 else
-       # libraries gets installed read only, so strip fails
-       for i in $(addprefix $(TARGET_DIR)/usr/lib/,libcrypto.so.* libssl.so.*); \
-       do chmod +w $$i; $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $$i; done
        rm -f $(TARGET_DIR)/usr/bin/openssl
 endif
        rm -f $(TARGET_DIR)/usr/bin/c_rehash
+       # libraries gets installed read only, so strip fails
+       for i in $(addprefix $(TARGET_DIR)/usr/lib/,libcrypto.so.* libssl.so.*); \
+       do chmod +w $$i; $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $$i; done
 ifneq ($(BR2_PACKAGE_OPENSSL_ENGINES),y)
        rm -rf $(TARGET_DIR)/usr/lib/engines
 else