On Thu, Nov 8, 2018 at 9:51 PM Helmut Grohne <hel...@subdivi.de> wrote:
> You notice that the native compiler invocation is asked to link the host > architecture libglib-2.0.so. That's wrong. > > To see that this is actually the first depenency() call leaking into the > next call, we can simply remove the first (unnecessary) call. After > doing so, the sample project crosses fine. It could be that the system picks the wrong pkg-config by accident. Please look in the build log file in meson-logs and look for a line like this: Determining dependency 'XXX' with pkg-config executable '/usr/bin/pkg-config' If it is using the wrong pkg-config then that is the reason for this problem. It could be picked up if, for example. someone has set PKG_CONFIG envvar to point to the cross pkg-config rather than the native one.