Skip to content

Commit 3e8cbeb

Browse files
author
minggo
committed
Merge pull request #28 from andyque/upgrade-curl
Upgrade curl to 7.39.0
2 parents c288bc8 + 901bc8d commit 3e8cbeb

File tree

7 files changed

+53
-11
lines changed

7 files changed

+53
-11
lines changed

build/android.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cfg_default_build_arches="all"
44
cfg_default_build_mode="release"
55
cfg_default_build_libraries="all"
66
#specific default values
7-
cfg_default_build_api=21
7+
cfg_default_build_api=9
88
cfg_default_gcc_version=4.9
99
cfg_arm_alias_folder_name="armeabi"
1010
cfg_armv7_alias_folder_name="armeabi-v7a"

build/mac.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cfg_is_cross_compile=no
2121
#build arches and build libraries
2222
cfg_all_supported_arches=("i386" "x86_64")
2323
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "glfw" "openssl" "gafplayer")
24-
cfg_default_arches_all=("x86_64" "i386")
24+
cfg_default_arches_all=("x86_64")
2525
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "glfw" "openssl" "gafplayer")
2626

2727

contrib/bootstrap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ check_macosx_sdk()
209209

210210
add_make "MACOSX_SDK=${SDKROOT}"
211211
add_make "OSX_VERSION ?= ${OSX_VERSION}"
212+
# TODO: the system libssl.dylib would config with the one we built
213+
# add_make "EXTRA_LDFLAGS := -L${SDKROOT}/usr/lib "
212214
}
213215

214216
check_android_sdk()

contrib/src/curl/SHA512SUMS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
751eefa59dc068eb85a017399bfb482a58fa6e791017a1d9e4bce89f9b744e18be0134696df6fff64ae4498121281d5433cf7af5e8c7fa211c094c21ec6759a9 curl-7.26.0.tar.gz
1+
251fb2063b7414fd54d139c032a25599f9016cd95c534835450a5a5e4bc20c81042f692d8fc18648a4c972fc3c9629e6b7b405d750a7fa29599da123a6b12aa7 curl-7.39.0.tar.gz

contrib/src/curl/android.patch

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/lib/curl_config.h b/lib/curl_config.h
2+
index 6acb5e4..e795bf3 100644
3+
--- a/lib/curl_config.h
4+
+++ b/lib/curl_config.h
5+
@@ -199,8 +199,6 @@
6+
/* Define to 1 if the getaddrinfo function is threadsafe. */
7+
#define HAVE_GETADDRINFO_THREADSAFE 1
8+
9+
-/* Define to 1 if you have the `geteuid' function. */
10+
-#define HAVE_GETEUID 1
11+
12+
/* Define to 1 if you have the gethostbyaddr function. */
13+
#define HAVE_GETHOSTBYADDR 1
14+
@@ -250,11 +248,6 @@
15+
/* Define to 1 if you have the `getprotobyname' function. */
16+
#define HAVE_GETPROTOBYNAME 1
17+
18+
-/* Define to 1 if you have the `getpwuid' function. */
19+
-#define HAVE_GETPWUID 1
20+
-
21+
-/* Define to 1 if you have the `getpwuid_r' function. */
22+
-#define HAVE_GETPWUID_R 1
23+
24+
/* Define to 1 if you have the `getrlimit' function. */
25+
#define HAVE_GETRLIMIT 1

contrib/src/curl/rules.mak

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# curl
22

3-
CURL_VERSION := 7.26.0
3+
CURL_VERSION := 7.39.0
44
CURL_URL := http://curl.haxx.se/download/curl-$(CURL_VERSION).tar.gz
55

66
$(TARBALLS)/curl-$(CURL_VERSION).tar.gz:
@@ -17,10 +17,19 @@ DEPS_curl = zlib $(DEPS_zlib)
1717

1818
DEPS_curl = openssl $(DEPS_openssl)
1919

20+
ifdef HAVE_LINUX
21+
configure_option=--without-libidn --without-librtmp
22+
endif
23+
2024
.curl: curl .zlib .openssl
25+
$(RECONF)
2126
cd $< && $(HOSTVARS_PIC) ./configure $(HOSTCONF) \
22-
--with-ssl \
27+
--with-ssl=$(PREFIX) \
2328
--with-zlib \
24-
cd $< && $(MAKE)
29+
--disable-ldap \
30+
$(configure_option)
31+
# ifdef HAVE_ANDROID
32+
# $(APPLY) $(SRC)/curl/android.patch
33+
# endif
2534
cd $< && $(MAKE) install
2635
touch $@

contrib/src/openssl/rules.mak

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ endif
1717

1818
ifdef HAVE_LINUX
1919
ifeq ($(MY_TARGET_ARCH),x86_64)
20-
OPENSSL_CONFIG_VARS="linux-generic64"
21-
OPENSSL_ARCH=-m64
20+
OPENSSL_CONFIG_VARS="linux-x86_64"
21+
OPENSSL_ARCH=-m64 -no-ssl2
2222
endif
2323

2424
ifeq ($(MY_TARGET_ARCH),i386)
2525
OPENSSL_CONFIG_VARS="linux-generic32"
26-
OPENSSL_ARCH=-m32
26+
OPENSSL_ARCH=-m32 -no-ssl2
2727
endif
2828
endif
2929

@@ -47,6 +47,12 @@ endif
4747
ifeq ($(MY_TARGET_ARCH),arm64)
4848
OPENSSL_CONFIG_VARS="BSD-generic64"
4949
endif
50+
ifeq ($(MY_TARGET_ARCH),armv7s)
51+
OPENSSL_CONFIG_VARS="BSD-generic32"
52+
endif
53+
ifeq ($(MY_TARGET_ARCH),x86_64)
54+
OPENSSL_CONFIG_VARS="darwin64-x86_64-cc"
55+
endif
5056
endif
5157

5258
$(TARBALLS)/openssl-$(OPENSSL_VERSION).tar.gz:
@@ -71,8 +77,8 @@ ifdef HAVE_LINUX
7177
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${EXTRA_CFLAGS} ${OPTIM} |g" Makefile
7278
endif
7379
ifdef HAVE_MACOSX
74-
cd $< && perl -i -pe "s|^CC= xcrun clang|CC= xcrun cc -mmacosx-version-min=10.6 |g" Makefile
75-
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${MACOSX_SDK} -arch ${MY_TARGET_ARCH} ${OPTIM} |g" Makefile
80+
cd $< && perl -i -pe "s|^CC= xcrun clang|CC= xcrun cc -arch ${MY_TARGET_ARCH} -mmacosx-version-min=10.7 |g" Makefile
81+
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${MACOSX_SDK} ${OPTIM} |g" Makefile
7682
endif
7783
cd $< && $(MAKE) install
7884
touch $@

0 commit comments

Comments
 (0)