File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,16 @@ export ANDROID_API
115
115
# info "LD FLAGS SELECTED = '${LDFLAGS}'"
116
116
117
117
export PATH=" ${toolchain_bin} :${cocos_root} /extras/tools/bin:$PATH "
118
+ if [ " $ANDROID_ABI " = " armeabi-v7a" ]; then
119
+ export CFLAGS=" -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security "
120
+ elif [ " $ANDROID_ABI " = " armeabi" ]; then
121
+ export CFLAGS=" -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security"
122
+ else
123
+ export CFLAGS=" -ffunction-sections -funwind-tables -fstack-protector -fPIC -no-canonical-prefixes -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security"
124
+ fi
125
+
126
+ info " CFLAGS is ${CFLAGS} "
127
+
118
128
#
119
129
# build 3rd party libraries
120
130
#
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ png: libpng-$(PNG_VERSION).tar.xz .sum-png
18
18
$(UNPACK )
19
19
$(MOVE )
20
20
21
- ifndef HAVE_ANDROID
22
21
DEPS_png = zlib $(DEPS_zlib )
23
- endif
24
22
25
23
.png : png
26
24
$(RECONF )
You can’t perform that action at this time.
0 commit comments