Skip to content

Commit 5a7c01b

Browse files
committed
modify ios build scripts
1 parent 7663644 commit 5a7c01b

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

build/ios/build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
set -e
3+
set -x
34

45
PLATFORM=OS
56
VERBOSE=no
@@ -10,7 +11,7 @@ ARCH=armv7
1011

1112
# TODO: configure to compile speficy 3rd party libraries
1213
OPTIONS="
13-
--disable-lua
14+
--enable-lua
1415
--enable-freetype2
1516
--enable-png
1617
"
@@ -19,12 +20,13 @@ OPTIONS="
1920
usage()
2021
{
2122
cat << EOF
22-
usage: $0 [-s] [-k sdk]
23+
usage: $0 [-s] [-k sdk] [-a arch] [-l libname]
2324
2425
OPTIONS
2526
-k <sdk version> Specify which sdk to use ('xcodebuild -showsdks', current: ${SDK_VERSION})
2627
-s Build for simulator
2728
-a <arch> Specify which arch to use (current: ${ARCH})
29+
-l <libname> Specify which static library to build
2830
EOF
2931
}
3032

@@ -46,7 +48,7 @@ info()
4648
}
4749

4850

49-
while getopts "hvsk:a:" OPTION
51+
while getopts "hvsk:a:l:" OPTION
5052
do
5153
case $OPTION in
5254
h)
@@ -65,6 +67,9 @@ do
6567
a)
6668
ARCH=$OPTARG
6769
;;
70+
l)
71+
OPTIONS=--enable-$OPTARG
72+
;;
6873
?)
6974
usage
7075
exit 1

contrib/src/openssl/SHA512SUMS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e4a68857b509bbaa5c66bf43491541e309e37f136816a1380664488420805edc74dc7f94c6318e34e077b29d53d060f971ba69b9efcfa0da9605934b2be45ef4 openssl-0.9.8zc.tar.gz
1+
a786bb99b68d88c1de79d3c5372767f091ebeefb5abc1d4883253fd3ab5a86af53389f5ff36fdd8faa27c5fb78be8bbff406392c373358697da80d250eadebb8 openssl-1.0.1j.tar.gz

contrib/src/openssl/rules.mak

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OPENSSL
2-
OPENSSL_VERSION := 0.9.8zc
2+
OPENSSL_VERSION := 1.0.1j
33
OPENSSL_URL := https://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz
44

55
#FIXME: we don't want to use scripts to determine which libraries should be
@@ -10,6 +10,11 @@ OPENSSL_URL := https://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz
1010
# PKGS_FOUND += openssl
1111
# endif
1212

13+
# ifeq ($(shell uname),Darwin) # openssl tries to use libtool on Darwin
14+
# ifdef HAVE_CROSS_COMPILE
15+
# ZLIB_CONFIG_VARS=CHOST=$(HOST)
16+
# endif
17+
# endif
1318

1419
$(TARBALLS)/openssl-$(OPENSSL_VERSION).tar.gz:
1520
$(call download,$(OPENSSL_URL))
@@ -21,7 +26,7 @@ openssl: openssl-$(OPENSSL_VERSION).tar.gz .sum-openssl
2126
$(MOVE)
2227

2328
.openssl: openssl
24-
cd $< && ./config no-shared --openssldir=$(PREFIX)
29+
cd $< && $(HOSTVARS) ./config no-shared --prefix=$(PREFIX)
2530
cd $< && $(MAKE) $(HOSTVARS)
2631
cd $< && $(MAKE) install
2732
touch $@

0 commit comments

Comments
 (0)