File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 220
220
if [ $lib = " curl" ]; then
221
221
mkdir -p ssl/prebuilt/
222
222
cp $top_dir /contrib/$install_library_path /$arch /lib/libssl.a ssl/prebuilt/libssl-$arch .a
223
+
223
224
mkdir -p crypto/prebuilt/
224
225
cp $top_dir /contrib/$install_library_path /$arch /lib/libcrypto.a crypto/prebuilt/libcrypto-$arch .a
226
+
227
+ echo " copying libz..."
228
+ mkdir -p z/prebuilt/
229
+ cp $top_dir /contrib/$install_library_path /$arch /lib/libz.a z/prebuilt/libz-$arch .a
225
230
fi
226
231
227
232
if [ $lib = " png" ]; then
255
260
if [ $lib = " curl" ]; then
256
261
create_fat_library ssl
257
262
create_fat_library crypto
263
+ create_fat_library z
258
264
fi
259
265
260
266
if [ $lib = " png" ]; then
Original file line number Diff line number Diff line change 218
218
echo " EXTRA_CFLAGS = ${EXTRA_CFLAGS} " >> config.mak
219
219
echo " EXTRA_LDFLAGS = ${EXTRA_LDFLAGS} " >> config.mak
220
220
echo " IOS_ARCH := ${ARCH} " >> config.mak
221
+ echo " BUILD_MODE := ${BUILD_MODE} " >> config.mak
222
+
221
223
make fetch
222
224
make list
223
225
make
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ ifeq ($(LUAJIT_VERSION),2.0.1)
14
14
$(APPLY) $(SRC)/luajit/v2.0.1_hotfix1.patch
15
15
endif
16
16
$(MOVE)
17
+
17
18
# FIXME: arm64 is not supported
18
19
ifeq ($(IOS_ARCH ) ,armv7)
19
20
LUAJIT_TARGET_FLAGS ="-arch armv7 -isysroot $(IOS_SDK ) "
Original file line number Diff line number Diff line change @@ -49,12 +49,16 @@ endif
49
49
.openssl : openssl
50
50
cd $< && $(HOSTVARS ) ./Configure $(OPENSSL_CONFIG_VARS ) --prefix=$(PREFIX ) $(OPENSSL_COMPILER )
51
51
ifdef HAVE_IOS
52
- # cd $< && perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
53
52
cd $< && perl -i -pe "s|^CC= xcrun clang|CC= xcrun cc -arch ${IOS_ARCH} -miphoneos-version-min=6.0 |g" Makefile
54
- cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${IOS_SDK} |g" Makefile
53
+ ifeq ($(BUILD_MODE ) ,release)
54
+ cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${IOS_SDK} -O3 -DNDEBUG |g" Makefile
55
+ endif
56
+ ifeq ($(BUILD_MODE ) ,debug)
57
+ cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${IOS_SDK} -O0 -g -DNDEBUG |g" Makefile
58
+ endif
55
59
endif
56
60
ifdef HAVE_ANDROID
57
- cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${ANDROID_ARCH} |g" Makefile
61
+ cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${ANDROID_ARCH} -O3 |g" Makefile
58
62
endif
59
63
cd $< && $(MAKE) install
60
64
touch $@
You can’t perform that action at this time.
0 commit comments