From c7c896649b416fae062021f33115ef061f3a533a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Oct 2004 15:08:17 +0000 Subject: make sure build uses $TARGET_CFLAGS instead of stupid -O3 --- package/openssl/openssl.mk | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk index 6377f1673..4cac7617f 100644 --- a/package/openssl/openssl.mk +++ b/package/openssl/openssl.mk @@ -5,9 +5,10 @@ ############################################################# # TARGETS +OPENSSL_VER:=0.9.7d OPENSSL_SITE:=http://www.openssl.org/source -OPENSSL_SOURCE:=openssl-0.9.7d.tar.gz -OPENSSL_DIR:=$(BUILD_DIR)/openssl-0.9.7d +OPENSSL_SOURCE:=openssl-$(OPENSSL_VER).tar.gz +OPENSSL_DIR:=$(BUILD_DIR)/openssl-$(OPENSSL_VER) $(DL_DIR)/$(OPENSSL_SOURCE): $(WGET) -P $(DL_DIR) $(OPENSSL_SITE)/$(OPENSSL_SOURCE) @@ -18,7 +19,9 @@ $(OPENSSL_DIR)/.unpacked: $(DL_DIR)/$(OPENSSL_SOURCE) # sigh... we have to resort to this just to set a gcc flag. $(SED) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' \ $(OPENSSL_DIR)/Configure - touch $(OPENSSL_DIR)/.unpacked + $(SED) '/CFLAG=/s,/;, $(TARGET_CFLAGS)/;,' \ + $(OPENSSL_DIR)/Configure + touch $(OPENSSL_DIR)/.unpacked $(OPENSSL_DIR)/Makefile: $(OPENSSL_DIR)/.unpacked (cd $(OPENSSL_DIR); \ @@ -73,5 +76,4 @@ openssl-clean: $(MAKE) -C $(OPENSSL_DIR) clean openssl-dirclean: - rm -rf $(OPENSSL_DIR) - + rm -rf $(OPENSSL_DIR) -- cgit v1.2.3