-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch for mbedtls to allow curl to build with mbedtls support
- Loading branch information
1 parent
511cb7d
commit 1d0b18b
Showing
8 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ MPFR_VER = 3.1.4 | |
PATCHELF_VER = 0.9 | ||
VIRTUALENV_VER = 15.0.0 | ||
MBEDTLS_VER = 2.3.0 | ||
CURL_VER = 7.50.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
015f6a0217ca6f2c5442ca406476920b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
94acd91fcf8ff2605e1ba2d086c2c366257b61eaf516b9ea44e574e315feb5b30f6e47d89051f259e026ef5dd9edde5f7b15a6af9ee6a38f641da354e1e677b1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## CURL ## | ||
|
||
CURL_SRC_TARGET := $(BUILDDIR)/curl-$(CURL_VER)/.libs/libcurl.$(SHLIB_EXT) | ||
CURL_OBJ_TARGET := $(build_shlibdir)/libcurl.$(SHLIB_EXT) | ||
|
||
ifneq ($(OS),WINNT) | ||
CURL_LDFLAGS := "-Wl,-rpath,'$(build_libdir)'" | ||
endif | ||
|
||
$(SRCDIR)/srccache/curl-$(CURL_VER).tar.bz2: | $(SRCDIR)/srccache | ||
$(JLDOWNLOAD) $@ https://curl.haxx.se/download/curl-$(CURL_VER).tar.bz2 | ||
$(SRCDIR)/srccache/curl-$(CURL_VER)/configure: $(SRCDIR)/srccache/curl-$(CURL_VER).tar.bz2 | ||
$(JLCHECKSUM) $< | ||
cd $(dir $<) && $(TAR) jxf $(notdir $<) | ||
touch -c $@ | ||
$(BUILDDIR)/curl-$(CURL_VER)/config.status: $(SRCDIR)/srccache/curl-$(CURL_VER)/configure | ||
mkdir -p $(dir $@) | ||
cd $(dir $@) && \ | ||
$< $(CONFIGURE_COMMON) --includedir=$(build_includedir) --with-mbedtls=$(build_shlibdir)/.. CFLAGS="$(CFLAGS) $(CURL_CFLAGS)" LDFLAGS="$(LDFLAGS) $(CURL_LDFLAGS)" | ||
touch -c $@ | ||
$(CURL_SRC_TARGET): $(BUILDDIR)/curl-$(CURL_VER)/config.status | ||
$(MAKE) -C $(dir $<) $(LIBTOOL_CCLD) | ||
touch -c $@ | ||
$(BUILDDIR)/curl-$(CURL_VER)/checked: $(CURL_SRC_TARGET) | ||
ifeq ($(OS),$(BUILD_OS)) | ||
ifneq ($(OS),WINNT) | ||
$(MAKE) -C $(dir $@) check -j1 | ||
endif | ||
endif | ||
echo 1 > $@ | ||
$(CURL_OBJ_TARGET): $(CURL_SRC_TARGET) | ||
$(call make-install,curl-$(CURL_VER),$(LIBTOOL_CCLD)) | ||
$(INSTALL_NAME_CMD)libcurl.$(SHLIB_EXT) $@ | ||
touch -c $@ | ||
|
||
clean-curl: | ||
-$(MAKE) -C $(BUILDDIR)/curl-$(CURL_VER) clean | ||
-rm -f $(build_shlibdir)/libcurl* | ||
distclean-curl: | ||
-rm -rf $(SRCDIR)/srccache/curl-$(CURL_VER).tar.bz2 $(SRCDIR)/srccache/curl-$(CURL_VER) $(BUILDDIR)/curl-$(CURL_VER) | ||
|
||
get-curl: $(SRCDIR)/srccache/curl-$(CURL_VER).tar.bz2 | ||
configure-curl: $(BUILDDIR)/curl-$(CURL_VER)/config.status | ||
compile-curl: $(CURL_SRC_TARGET) | ||
check-curl: $(BUILDDIR)/curl-$(CURL_VER)/checked | ||
install-curl: $(CURL_OBJ_TARGET) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- ssl.h.old 2016-06-28 18:12:06.000000000 +0530 | ||
+++ ssl.h 2016-08-03 18:51:34.000000000 +0530 | ||
@@ -54,7 +54,8 @@ | ||
#endif | ||
|
||
#if defined(MBEDTLS_HAVE_TIME) | ||
-#include <time.h> | ||
+//#include <time.h> | ||
+#include "platform.h" | ||
#endif | ||
|
||
/* |