Skip to content

Commit f5f916a

Browse files
committed
update libcurl for mac
1 parent 913c740 commit f5f916a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

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/rules.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ DEPS_curl = zlib $(DEPS_zlib)
1818
DEPS_curl = openssl $(DEPS_openssl)
1919

2020
.curl: curl .zlib .openssl
21+
$(RECONF)
2122
cd $< && $(HOSTVARS_PIC) ./configure $(HOSTCONF) \
22-
--with-ssl \
23+
--with-ssl=$(PREFIX) \
2324
--with-zlib \
24-
25+
--disable-ldap
2526
# ifdef HAVE_ANDROID
2627
# $(APPLY) $(SRC)/curl/android.patch
2728
# endif
28-
cd $< && $(MAKE)
2929
cd $< && $(MAKE) install
3030
touch $@

contrib/src/openssl/rules.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ ifdef HAVE_LINUX
7777
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${EXTRA_CFLAGS} ${OPTIM} |g" Makefile
7878
endif
7979
ifdef HAVE_MACOSX
80-
cd $< && perl -i -pe "s|^CC= xcrun clang|CC= xcrun cc -mmacosx-version-min=10.6 |g" Makefile
81-
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
8282
endif
8383
cd $< && $(MAKE) install
8484
touch $@

0 commit comments

Comments
 (0)