We use libandroid-support when building Python, but Python does not use LDFLAGS when building modules (and not much point in this case). --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -121,7 +121,7 @@ #include #endif -#ifdef HAVE_LANGINFO_H +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) #include #endif