Re: [PATCH] scripts: Fix linking extract-cert against libcrypto
From: Daniel Díaz
Date: Tue Feb 16 2021 - 18:54:32 EST
Hello!
On Fri, 12 Feb 2021 at 01:44, Rolf Eike Beer <eb@xxxxxxxxx> wrote:
>
> Am Donnerstag, 11. Februar 2021, 11:29:33 CET schrieb Rolf Eike Beer:
>
> > I'm just guessing, but your build error looks like you are also
> > cross-building the tools, which is wrong. You want them to be host-tools.
> > So don't export PKG_CONFIG_SYSROOT_DIR, it would then try to link target
> > libraries into a host binary.
>
> I have looked again how I do it:
>
> # this is for additional _host_ .pc files
> export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig
>
> Then have a target-pkg-config, so this code inside several kernel Makefiles
> will work:
>
> PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config
>
> And then export your PKG_CONFIG_SYSROOT_DIR and the like inside that. I bet
> you have all of this already in place, so just remove the SYSROOT_DIR from
> your kernel build script and things should work.
Thank you for your comments! I will try this in our environment in the
upcoming days.
Greetings!
Daniel Díaz
daniel.diaz@xxxxxxxxxx