Index: runtimes/CMakeLists.txt =================================================================== --- runtimes/CMakeLists.txt +++ runtimes/CMakeLists.txt @@ -24,6 +24,7 @@ endfunction() cmake_minimum_required(VERSION 3.4.3) + project(Runtimes C CXX ASM) # Add the root project's CMake modules, and the LLVM build's modules to the # CMake module path. @@ -84,6 +85,11 @@ include(AddLLVM) include(HandleLLVMOptions) + if (ANDROID) + remove_definitions(-D_FILE_OFFSET_BITS=64) + string(REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}) + endif() + set(CMAKE_REQUIRED_FLAGS ${SAFE_CMAKE_REQUIRED_FLAGS}) set(CMAKE_REQUIRED_LIBRARIES ${SAFE_CMAKE_REQUIRED_LIBRARIES})