From: <Mikko.Rapeli@bmw.de>
To: <dan@engineeredarts.co.uk>
Cc: <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] host file contamination with recipes using cmake and find_package
Date: Fri, 27 May 2022 15:44:49 +0000 [thread overview]
Message-ID: <YpDx8SvCLfnCooyz@korppu> (raw)
In-Reply-To: <4ef989e9-e640-e6e7-59e7-e8a64c724b18@engineeredarts.co.uk>
Hi,
On Fri, May 27, 2022 at 04:37:40PM +0100, Daniel Squires wrote:
> We are indeed using
>
> inherit cmake
>
> The CMakeLists.txt adds a few bits to CMAKE_CXX_FLAGS but does not outright
> clobber it. I have noticed in other recipes some things like:
>
> EXTRA_OECONF = " --with-openssl=${STAGING_DIR_HOST}${prefix} \
> "
>
> And from the docs it seems like this maybe intended to help with this, but I
> am not entirely sure. Does that look right? I don't currently have access
> to one of the systems where the build is failing but I'll try it out next
> week.
To me this looks wrong. If CMake is used and toolchain.cmake variables not overwritten,
the sysroot path is set and openssl will be found from default system include
directories inside sysroot and nothing like this needs to be added as long as
DEPENDS has openssl. I'd debug this under bitbake -c devshell.
Cheers,
-Mikko
next prev parent reply other threads:[~2022-05-27 15:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 15:07 host file contamination with recipes using cmake and find_package Daniel Squires
2022-05-27 15:23 ` [yocto] " Mikko.Rapeli
2022-05-27 15:37 ` Daniel Squires
2022-05-27 15:44 ` Mikko.Rapeli [this message]
2022-05-31 15:15 ` Daniel Squires
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YpDx8SvCLfnCooyz@korppu \
--to=mikko.rapeli@bmw.de \
--cc=dan@engineeredarts.co.uk \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.