On 3 May 2024, at 11:43, Martin Jansa via lists.openembedded.org 
<martin.jansa=gmail....@lists.openembedded.org> wrote:
> Isn't it easier to fix tpm2-openssl then?
> 
> I had similar issue in chip which was using "pkg-config
> --variable=prefix openssl" and didn't expect it to be empty in "if
> prefix[-4] == '/usr'" and rather patched chip than changing openssl.

The libdir variable in the .pc _is_ wrong and the documentation clearly states 
that —libdir is the name of the directory under prefix (is ${baselib).  
Building it outside of Yocto with —prefix=/foo —libdir=bar correctly sets 
libdir as /foo/bar so we should be able to do the right thing and indeed I have 
a patch that fixes this and cleans up some other nonsense:

/work/ross/build/tmp/sysroots-components/cortexa57/openssl$ cat 
usr/lib/pkgconfig/openssl.pc
libdir=/usr/lib

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198974): 
https://lists.openembedded.org/g/openembedded-core/message/198974
Mute This Topic: https://lists.openembedded.org/mt/105885236/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to