<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 May 2017 at 17:08, Daniel Stone <span dir="ltr"><<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jussi,<br>
<span class=""><br>
On 26 May 2017 at 14:55, Jussi Kukkonen <<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>> wrote:<br>
> On 26 May 2017 at 14:32, Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
</span><span class="">>> b) with a wrapper script - see [1].<br>
>> I think that the "export PKG_CONFIG_DIR=" is a typo (should be ..PATH<br>
>> instead) and is not strictly required - feel free to check either way.<br>
>> Note that the exec at the end might need to be amended to<br>
>> /path/to/$(CHOST)-pkg-config.<br>
><br>
> We don't provide a target wrapper -- I believe because it provides no value<br>
> at all on top of the setup we have (the pkg-config that autotools finds has<br>
> all the environment variables set correctly. It is essentially<br>
> $(CHOST)-pkg-config already).<br>
><br>
> If I've missed something, I'd be happy to hear that. At the moment I think<br>
> pkg-config just does not help in this case.<br>
<br>
</span>Thinking out loud, how about searching for a separate pkg-config file<br>
(wayland-scanner-native.pc as a strawman) first, then falling back to<br>
wayland-scanner.pc? The BitBake recipes could then install that<br>
somewhere in $PKG_CONFIG_PATH as a special case in the install target.<br></blockquote><div><br></div><div>I think I just understood what you meant: That a modified  "wayland-scanner-native.pc" is installed as wayland-scanner.pc but only in the sysroot case: the real target wayland-scanner.pc would not be modified. </div><div><br></div><div>This sounds like it's worth trying, thanks.</div><div><br></div><div>Jussi</div></div></div></div>