Skip to content

Commit 0f72f74

Browse files
authored
Merge pull request #5 from theofrclt/page-16kb
Compatibility with 16kb page size for Play Store
2 parents 2032997 + 17de463 commit 0f72f74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quickjs/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCONFIG_VERSION=\\\"2021-03-27\\\"")
2424
find_library(log-lib log)
2525
target_link_libraries(fastdev_quickjs_runtime ${log-lib})
2626

27+
target_link_options(fastdev_quickjs_runtime PRIVATE "-Wl,-z,common-page-size=65536" "-Wl,-z,max-page-size=65536")
28+
29+
set(CMAKE_SHARED_LINKER_FLAGS
30+
"${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,common-page-size=65536 -Wl,-z,max-page-size=65536"
31+
)
32+
2733
if(MSVC)
2834
# https://github.com/ekibun/flutter_qjs/issues/7
2935
target_compile_options(fastdev_quickjs_runtime PRIVATE "/Oi-")

0 commit comments

Comments
 (0)