All of lore.kernel.org
 help / color / mirror / Atom feed
* Specify GCC version for building native applications
@ 2016-03-22 23:06 Matt Schuckmann
  2016-03-23 11:51 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Schuckmann @ 2016-03-22 23:06 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

My Ubuntu system has GCC 5.x installed but our Fido based OE build has errors unless I use GCC 4.9 for building native recipes.

I can install both gcc 4.9 and gcc 5.0 on my system and use update-alternatives to switch back and forth when I need to but it would be nice if I could just configure bitbake/OE to use gcc 4.9 directly.

So is there a way to tell bitbake/OE what version of GCC on the host to use to build native applications?


Thanks,

Matt S.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Specify GCC version for building native applications
  2016-03-22 23:06 Specify GCC version for building native applications Matt Schuckmann
@ 2016-03-23 11:51 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2016-03-23 11:51 UTC (permalink / raw)
  To: OpenEmbedded Devel List

On 22 March 2016 at 23:06, Matt Schuckmann <Matt.Schuckmann@planar.com>
wrote:

> I can install both gcc 4.9 and gcc 5.0 on my system and use
> update-alternatives to switch back and forth when I need to but it would be
> nice if I could just configure bitbake/OE to use gcc 4.9 directly.
>
> So is there a way to tell bitbake/OE what version of GCC on the host to
> use to build native applications?
>

Yes, looking at native.bbclass shows that it uses BUILD_CC etc.  Just
assign those in your local.conf or similar, this works on my Debian box to
pick gcc5.3 over 4.9:

BUILD_CC = "gcc-5 ${BUILD_CC_ARCH}"
BUILD_CXX = "g++-5 ${BUILD_CC_ARCH}"
BUILD_CPP = "gcc-5 ${BUILD_CC_ARCH} -E"
BUILD_CCLD = "gcc-5 ${BUILD_CC_ARCH}"
BUILD_RANLIB = "gcc-ranlib-5"
BUILD_NM = "gcc-nm-5"

Ross


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-23 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 23:06 Specify GCC version for building native applications Matt Schuckmann
2016-03-23 11:51 ` Burton, Ross

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.