Make sure executables are position-independent

This commit is contained in:
Davide Depau 2018-08-17 21:51:40 +02:00
parent d49d3d7325
commit cc2d33148c
Signed by: depau
GPG key ID: C7D999B6A55EFE86
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 3.4)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/assets/bin/${ANDROID_ABI}")
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
execute_process(
COMMAND truncate -s 0 crypto/compat/getpagesize.c
WORKING_DIRECTORY src/c/libressl)

View file

@ -6,6 +6,7 @@ android {
externalNativeBuild {
cmake {
targets "crypto", "bz2", "ssl", "tls", "dmg2img"
arguments "-DANDROID_PIE=ON"
}
}
}