summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-04-28 18:30:06 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-04-28 18:30:06 +0000
commit98dcd8656d12a701293751f05437041fd52f5984 (patch)
tree36fd7cacc68a9528a4c4c919834daa5e1b50b743
parent027aa1d2ec07402d9aa1df3825207f120acae497 (diff)
package/openssl: make sure TARGET_CFLAGS are used
And remove the unnedded c_rehash binary while we're at it. Patch by Gustavo Zacarias <gustavo@zacarias.com.br>, closes #307. Saves ~250k on PPC with default config (E.G. -Os)
-rw-r--r--package/openssl/openssl.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index cca0afd69..62c2f33bd 100644
--- a/package/openssl/openssl.mk
+++ b/package/openssl/openssl.mk
@@ -46,6 +46,8 @@ $(OPENSSL_TARGET_CONFIGURE):
no-rc5 \
zlib-dynamic \
)
+ $(SED) "s:-march=[-a-z0-9] ::" -e "s:-mcpu=[-a-z0-9] ::g" $(OPENSSL_DIR)/Makefile
+ $(SED) "s:-O[0-9]:$(TARGET_CFLAGS):" $(OPENSSL_DIR)/Makefile
touch $@
$(OPENSSL_TARGET_BUILD):
@@ -61,9 +63,9 @@ 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/c_rehash
rm -f $(TARGET_DIR)/usr/bin/openssl
endif
+ rm -f $(TARGET_DIR)/usr/bin/c_rehash
ifneq ($(BR2_PACKAGE_OPENSSL_ENGINES),y)
rm -rf $(TARGET_DIR)/usr/lib/engines
else