Commit 06d6ffe1 authored by Marius Gerbershagen's avatar Marius Gerbershagen

android: do not compile with -D_FILE_OFFSET_BITS=64

    Otherwise on NDK >= 16 fseeko and ftello are not declared in
    stdio.h for Android API versions smaller than 24 (See
    https://android-developers.googleblog.com/2017/09/introducing-android-native-development.html).
parent 736f50b8
......@@ -261,7 +261,7 @@ case "${host_os}" in
ECL_LDRPATH='-Wl,--rpath,~A'
clibs="-ldl ${clibs}"
# Maybe CFLAGS="-D_ISOC99_SOURCE ${CFLAGS}" ???
CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING ${CFLAGS}"
CFLAGS="-D_GNU_SOURCE -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING ${CFLAGS}"
ECL_ADD_FEATURE([android])
;;
......
......@@ -4920,7 +4920,7 @@ case "${host_os}" in
ECL_LDRPATH='-Wl,--rpath,~A'
clibs="-ldl ${clibs}"
# Maybe CFLAGS="-D_ISOC99_SOURCE ${CFLAGS}" ???
CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING ${CFLAGS}"
CFLAGS="-D_GNU_SOURCE -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING ${CFLAGS}"
LSP_FEATURES="(cons :android ${LSP_FEATURES})"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment