Skip to content

Commit cc95506

Browse files
committed
Build with 16KB pages support
1 parent 1ea29dd commit cc95506

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

androidbuildlib

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ do
155155
export STRIP=$TOOLCHAIN/bin/llvm-strip
156156
export CHOST=$chost
157157

158+
export LDFLAGS="-Wl,-z,max-page-size=16384"
159+
158160
# only confiture and make clean when there's no flag telling to ignore
159161
if [ "$fresh_build" == "true" ]
160162
then

build_aria2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ do
153153
CXXFLAGS="-Os -g" \
154154
CFLAGS="-Os -g" \
155155
CPPFLAGS="-fPIE" \
156-
LDFLAGS="-fPIE -pie -L$LIBS_TARGET_DIR/lib -static-libstdc++" \
156+
LDFLAGS="-fPIE -pie -L$LIBS_TARGET_DIR/lib -static-libstdc++ -Wl,-z,max-page-size=16384" \
157157
PKG_CONFIG_LIBDIR="$LIBS_TARGET_DIR/lib/pkgconfig" || exit
158158

159159

build_openssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424

2525
# Nov 10, 2021, openssl fix it. https://github.com/openssl/openssl/pull/15086
2626
# now we can use -latomic to fix the build error.
27-
LDFLAGS="-latomic"
27+
LDFLAGS="-latomic -Wl,-z,max-page-size=16384"
2828

2929
echo -e "\n++ Build openssl armeabi-v7a ++"
3030
./Configure no-shared android-arm -D__ANDROID_API__=21 --prefix="$INSTALL_DIR/armeabi-v7a" $LDFLAGS

0 commit comments

Comments
 (0)