Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
To: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] cmake.bbclass: Don't use packages from the native	build machine
Date: Thu, 15 Aug 2013 21:44:18 +0200	[thread overview]
Message-ID: <520D2F92.7030009@herbrechtsmeier.net> (raw)
In-Reply-To: <015801ce98e6$826796d0$8736c470$@oss.bmw-carit.de>

Am 14.08.2013 14:05, schrieb Lukas Bulwahn:
> I have been working with this patch for quite some time on my
> OpenEmbedded-Core repository and I have not seen any problems, but I do not
> know if it breaks anything on the complete 'bitbake world'.
The only thing that should be used from the native build machine is the 
detection of the native compiler and this detection is already broken as 
the cmake module expect a CMAKE_C_COMPILER  and CMAKE_CXX_COMPILER 
compiler variable with full paths.

>> -----Ursprüngliche Nachricht-----
>> Von: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] Im
>> Auftrag von Stefan Herbrechtsmeier
>> Gesendet: Mittwoch, 14. August 2013 10:48
>> An: openembedded-core@lists.openembedded.org
>> Betreff: [OE-core] [PATCH] cmake.bbclass: Don't use packages from the
>> native build machine
>>
>> Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
>> ---
>>   meta/classes/cmake.bbclass |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index
>> 310242e..8e579a7 100644
>> --- a/meta/classes/cmake.bbclass
>> +++ b/meta/classes/cmake.bbclass
>> @@ -49,6 +49,7 @@ set( CMAKE_CXX_LINK_FLAGS
>> "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )  # only search
>> in the paths provided so cmake doesnt pick  # up libraries and tools from
> the
>> native build machine  set( CMAKE_FIND_ROOT_PATH
>> ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR}
>> ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH}
>> ${EXTERNAL_TOOLCHAIN})
>> +set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
>>   set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )  set(
>> CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )  set(
>> CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



      reply	other threads:[~2013-08-15 19:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14  8:47 [PATCH] cmake.bbclass: Don't use packages from the native build machine Stefan Herbrechtsmeier
2013-08-14 12:05 ` Lukas Bulwahn
2013-08-15 19:44   ` Stefan Herbrechtsmeier [this message]

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=520D2F92.7030009@herbrechtsmeier.net \
    --to=stefan@herbrechtsmeier.net \
    --cc=lukas.bulwahn@oss.bmw-carit.de \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox