On Sat, 3 Nov 2018, 12:28 Bruno Haible <[email protected] wrote: > Reuben Thomas wrote: > > > 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? > > How does your compilation environment look like? > Do you compile natively inside Termux? Or do you do a cross-compilation? > Are you using gcc or clang? > Who has defined the __ANDROID_API__ value and the -L options in your > compilation environment? >
I'm compiling with clang natively in Termux. All the options are set by Termux. __ANDROID_API__ in particular is set by a Termux header that is included by most of the system headers, in this case string.h. The -L options again are all default.
