File tree Expand file tree Collapse file tree 7 files changed +53
-11
lines changed Expand file tree Collapse file tree 7 files changed +53
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cfg_default_build_arches="all"
4
4
cfg_default_build_mode =" release"
5
5
cfg_default_build_libraries =" all"
6
6
# specific default values
7
- cfg_default_build_api =21
7
+ cfg_default_build_api =9
8
8
cfg_default_gcc_version =4.9
9
9
cfg_arm_alias_folder_name =" armeabi"
10
10
cfg_armv7_alias_folder_name =" armeabi-v7a"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ cfg_is_cross_compile=no
21
21
# build arches and build libraries
22
22
cfg_all_supported_arches =(" i386" " x86_64" )
23
23
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" )
25
25
cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " glfw" " openssl" " gafplayer" )
26
26
27
27
Original file line number Diff line number Diff line change @@ -209,6 +209,8 @@ check_macosx_sdk()
209
209
210
210
add_make " MACOSX_SDK=${SDKROOT} "
211
211
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 "
212
214
}
213
215
214
216
check_android_sdk ()
Original file line number Diff line number Diff line change 1
- 751eefa59dc068eb85a017399bfb482a58fa6e791017a1d9e4bce89f9b744e18be0134696df6fff64ae4498121281d5433cf7af5e8c7fa211c094c21ec6759a9 curl-7.26 .0.tar.gz
1
+ 251fb2063b7414fd54d139c032a25599f9016cd95c534835450a5a5e4bc20c81042f692d8fc18648a4c972fc3c9629e6b7b405d750a7fa29599da123a6b12aa7 curl-7.39 .0.tar.gz
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
# curl
2
2
3
- CURL_VERSION := 7.26 .0
3
+ CURL_VERSION := 7.39 .0
4
4
CURL_URL := http://curl.haxx.se/download/curl-$(CURL_VERSION ) .tar.gz
5
5
6
6
$(TARBALLS ) /curl-$(CURL_VERSION ) .tar.gz :
@@ -17,10 +17,19 @@ DEPS_curl = zlib $(DEPS_zlib)
17
17
18
18
DEPS_curl = openssl $(DEPS_openssl )
19
19
20
+ ifdef HAVE_LINUX
21
+ configure_option =--without-libidn --without-librtmp
22
+ endif
23
+
20
24
.curl : curl .zlib .openssl
25
+ $(RECONF )
21
26
cd $< && $(HOSTVARS_PIC ) ./configure $(HOSTCONF ) \
22
- --with-ssl \
27
+ --with-ssl= $( PREFIX ) \
23
28
--with-zlib \
24
- cd $< && $(MAKE )
29
+ --disable-ldap \
30
+ $(configure_option )
31
+ # ifdef HAVE_ANDROID
32
+ # $(APPLY) $(SRC)/curl/android.patch
33
+ # endif
25
34
cd $< && $(MAKE) install
26
35
touch $@
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ endif
17
17
18
18
ifdef HAVE_LINUX
19
19
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
22
22
endif
23
23
24
24
ifeq ($(MY_TARGET_ARCH ) ,i386)
25
25
OPENSSL_CONFIG_VARS ="linux-generic32"
26
- OPENSSL_ARCH =-m32
26
+ OPENSSL_ARCH =-m32 -no-ssl2
27
27
endif
28
28
endif
29
29
47
47
ifeq ($(MY_TARGET_ARCH ) ,arm64)
48
48
OPENSSL_CONFIG_VARS ="BSD-generic64"
49
49
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
50
56
endif
51
57
52
58
$(TARBALLS ) /openssl-$(OPENSSL_VERSION ) .tar.gz :
@@ -71,8 +77,8 @@ ifdef HAVE_LINUX
71
77
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${EXTRA_CFLAGS} ${OPTIM} |g" Makefile
72
78
endif
73
79
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
76
82
endif
77
83
cd $< && $(MAKE) install
78
84
touch $@
You can’t perform that action at this time.
0 commit comments