Skip to content

Commit 92f43e9

Browse files
committed
get ready for 16kB page sizes
1 parent f2a5900 commit 92f43e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

circle_scripts/deps.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build_yasm="0"
1616

1717
## ----------------------
1818
FORTIFY_FLAGS="" # "-D_FORTIFY_SOURCE=2"
19+
JNI_CUSTOM_FLAGS="-Wl,-z,max-page-size=16384" # align for 16kB
1920
_FFMPEG_VERSION_="n7.1"
2021
_OPUS_VERSION_="v1.5.2"
2122
_VPX_VERSION_="v1.15.2"
@@ -674,6 +675,7 @@ popd
674675
cd $_s_/jni-c-toxcore/; export V=1;$GCC -O3 -fPIC -g -shared \
675676
$WARNS \
676677
$FORTIFY_FLAGS \
678+
$JNI_CUSTOM_FLAGS \
677679
-DGIT_HASH=\"$git_hash_for_jni\" \
678680
-funwind-tables -Wl,--no-merge-exidx-entries -Wl,-soname,libjni-c-toxcore.so \
679681
jni-c-toxcore.c -o libjni-c-toxcore.so \
@@ -1269,6 +1271,7 @@ set -x
12691271
cd $_s_/jni-c-toxcore/; export V=1;$GCC -O3 -fPIC -g -shared \
12701272
$WARNS \
12711273
$FORTIFY_FLAGS \
1274+
$JNI_CUSTOM_FLAGS \
12721275
$ASAN_CLANG_FLAGS \
12731276
-DGIT_HASH=\"$git_hash_for_jni\" \
12741277
-funwind-tables -Wl,-soname,libjni-c-toxcore.so \
@@ -1708,6 +1711,7 @@ cd $_s_/jni-c-toxcore/; export V=1;$GCC -O3 -fPIC -g -shared -Wall -Wextra \
17081711
-Wno-pointer-sign -Wno-unused-but-set-variable \
17091712
$WARNS \
17101713
$FORTIFY_FLAGS \
1714+
$JNI_CUSTOM_FLAGS \
17111715
-DGIT_HASH=\"$git_hash_for_jni\" \
17121716
-funwind-tables -Wl,--no-merge-exidx-entries -Wl,-soname,libjni-c-toxcore.so \
17131717
jni-c-toxcore.c -o libjni-c-toxcore.so \
@@ -2143,6 +2147,7 @@ cd $_s_/jni-c-toxcore/; export V=1;$GCC -O3 -fPIC -g -shared -Wall -Wextra \
21432147
-Wno-pointer-sign -Wno-unused-but-set-variable \
21442148
$WARNS \
21452149
$FORTIFY_FLAGS \
2150+
$JNI_CUSTOM_FLAGS \
21462151
-DGIT_HASH=\"$git_hash_for_jni\" \
21472152
-funwind-tables -Wl,--no-merge-exidx-entries -Wl,-soname,libjni-c-toxcore.so \
21482153
jni-c-toxcore.c -o libjni-c-toxcore.so \

0 commit comments

Comments
 (0)