+termux_step_pre_configure() {
+ export LD=$CC
+ if [ $TERMUX_ARCH=arm ]; then
+ # XXX: Building with -mthumb, which Termux does by
+ # default on arm, see:
+ # https://github.com/termux/termux-packages/issues/761
+ CFLAGS="${CFLAGS/-mthumb/}"
+ fi
+}