[Mesa-dev] [PATCH] configure.ac: invert order for wayland-scanner check

Emil Velikov emil.l.velikov at gmail.com
Fri Nov 18 15:18:57 UTC 2016


Hi Gustavo,

On 17 November 2016 at 18:57, Gustavo Zacarias <gustavo at zacarias.com.ar> wrote:
> When cross-compiling the .pc file might point to the wrong
> wayland-scanner binary (target rather than host) resulting in a
> non-executable and wrong scanner.
> Try searching the PATH first, and if that fails fall back into
> pkg-config.
>
Not sure I exactly follow what's happening there.

As we cross-compile wayland
 - the wayland-scanner binary (and thus .pc) should follow --build arch/triplet
 - the wayland libraries the host/target ones.

Are you saying that despite the different arch/triplet everything is
installed in the same place ? I'm not a cross-compilation expert but
the latter doesn't sound right.
There was a related discussion on the wayland mailing list, but I'm
not sure the proposed solution (there) is correct either.

Thanks
Emil

[1] https://lists.freedesktop.org/archives/wayland-devel/2016-September/031073.html


More information about the mesa-dev mailing list