There are several ways around this. The easiest way is to download the toolchain that comes with the target libraries you need. Given that this is not likely to happen, here is one way to solve this problem.
I assume that you are using gcc as your cross-compiler.
- Copy all the libraries you need from the target system to a folder.
In the Makefile (or command line), install CFLAGS (and CXXFLAGS, if C ++), on the following:
-L / path / to / target / libs -Wl, -rpath-link / same / path / as / first
Note that -Wl and -rpath-link do not have space between them, it should be this way.
-L . -Wl, -rpath-link . , , , nagainst.