diff options
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index b110810ec..bb853d5e7 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -65,6 +65,10 @@ function(td_set_up_compiler) set(TD_LINKER_FLAGS "-Wl,--gc-sections") elseif (ANDROID) set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL -Wl,--icf=safe") + if (CMAKE_SIZEOF_VOID_P EQUAL 8) + # Enable 16 KB ELF alignment + set(TD_LINKER_FLAGS "${TD_LINKER_FLAGS} -Wl,-z,max-page-size=16384") + endif() else() set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL") endif() |
