+
+ # librt and libpthread are built into libc on android, so setup them as symlinks
+ # to libc for compatibility with programs that users try to build:
+ local _SYSTEM_LIBDIR=/system/lib64
+ if [ $TERMUX_ARCH_BITS = 32 ]; then _SYSTEM_LIBDIR=/system/lib; fi
+ mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib
+ cd $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib
+ ln -f -s $_SYSTEM_LIBDIR/libc.so librt.so
+ ln -f -s $_SYSTEM_LIBDIR/libc.so libpthread.so