File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,13 @@ info "Building static libraries"
132
132
spushd " ${cocos_root} /contrib"
133
133
mkdir -p " Android-${ANDROID_ABI} " && cd " Android-${ANDROID_ABI} "
134
134
135
+
135
136
../bootstrap ${OPTIONS} \
136
137
--host=${TARGET} \
137
138
--prefix=${cocos_root} /contrib/${TARGET} -${ANDROID_ABI} > $out
139
+
140
+ echo " ANDROID_ARCH := ${CFLAGS} " >> config.mak
141
+
138
142
#
139
143
# make
140
144
#
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ ifdef HAVE_IOS
52
52
# cd $< && perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
53
53
cd $< && perl -i -pe "s|^CC= xcrun clang|CC= xcrun cc -arch ${IOS_ARCH} -miphoneos-version-min=6.0 |g" Makefile
54
54
cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${IOS_SDK} |g" Makefile
55
+ endif
56
+ ifdef HAVE_ANDROID
57
+ cd $< && perl -i -pe "s|^CFLAG= (.*)|CFLAG= ${ANDROID_ARCH} |g" Makefile
55
58
endif
56
59
cd $< && $(MAKE) install
57
60
touch $@
You can’t perform that action at this time.
0 commit comments