[Re-adding bug-gnulib, sorry!]
> > Could it be that the Android libraries that you are linking with are not
> > in sync with the __ANDROID_API__ that you set?
> >
>
> That's right. I use the default Termux setting of __ANDROID_API__. I
> presume this is made so that binaries will work on earlier versions of
> Android.
You need to use the same Android API value in
- the -D__ANDROID_API__=${ANDROID_API} option
- the -B${ANDROID_SDK}/ndk-bundle/platforms/android-${ANDROID_API}/arch-arm/usr/lib
option
as I showed in the intialization script.
Since I'm not setting the API version at all, that implies there's a bug in the configuration of Termux?