Skip to content

Commit 62376ef

Browse files
committed
make quickjs.so 16kb aligned
1 parent a8dca76 commit 62376ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

substrata-kotlin/src/main/cpp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ target_link_libraries( # Specifies the target library.
6060
# Links the target library to the log library
6161
# included in the NDK.
6262
${log-lib} )
63+
64+
# Set 16KB alignment
65+
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE
66+
-Wl,-z,max-page-size=16384
67+
-Wl,-z,common-page-size=16384
68+
)

0 commit comments

Comments
 (0)