Seems like the toolchain you are using is built for glibc. But the target board has uClibc installed.
These two libraries are incompatible.
At runtime they are incompatible, and at compile-time they are incompatible.
You cannot "tell the compiler to use a different & incompatible library.
You need to obtain a toolchain that is built specifically for uClibc instead of glibc/eglibc.
The site gnuarm.com used to have some reliable toolchains, but that site is no more.
You could try and build your own toolchain using crosstool-NG, which is a lot easier than building the individual toolchain packages. Try the arm-unknown-linux-uclibcgnueabi
configuration and customize it to your needs.