aboutsummaryrefslogtreecommitdiff
path: root/package/openssl
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2004-10-21 15:08:17 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2004-10-21 15:08:17 +0000
commitc7c896649b416fae062021f33115ef061f3a533a (patch)
treec5236f33ddb61af4ea6bc406f9fb0fa1fb8ee96b /package/openssl
parente0952c61403850f69af7b911996a11b05c91a0cb (diff)
downloadbuildroot-c7c896649b416fae062021f33115ef061f3a533a.tar.gz
buildroot-c7c896649b416fae062021f33115ef061f3a533a.tar.bz2
make sure build uses $TARGET_CFLAGS instead of stupid -O3
Diffstat (limited to 'package/openssl')
-rw-r--r--package/openssl/openssl.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index 6377f1673f..4cac7617f6 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)