Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation

From: Nicolas Dichtel
Date: Thu Apr 11 2019 - 05:26:18 EST


Le 11/04/2019 Ã 10:52, Rolf Eike Beer a ÃcritÂ:
> Am Donnerstag, 11. April 2019, 10:39:40 CEST schrieb Nicolas Dichtel:
>> In case of cross-compilation, there may be two pkg-config tools, one for
>> the host and one for the target. Enable to override the default name.
>>
>> Fixes: 056d28d135bc ("objtool: Query pkg-config for libelf location")
>> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>
>
> If you do that, you have to fix a lot of other places, too. This starts in
> scripts/kconfig/ and also includes e.g. tools/testing/.
>
> Usually you have pkg-config for host and ${target_platform}-pkg-config for the
My use case was for buildroot, which define pkg-config and host-pkgconf. In
fact, I've just seen that a buildroot patch was accepted for this problem:
https://patchwork.ozlabs.org/patch/1081379/


Regards,
Nicolas