[OE-core] [PATCH] pseudo: obey our LDFLAGS

Christopher Larson kergoth at gmail.com
Wed May 11 18:24:10 UTC 2016


On Wed, May 11, 2016 at 11:15 AM, Mark Hatle <mark.hatle at windriver.com>
wrote:

> On 5/11/16 12:14 PM, Christopher Larson wrote:
> > Hmm, interesting. It doesn't actually appear to be using LDFLAGS from the
> > environment at all just now. I'll take another look. Thanks.
>
> CFLAGS and LDFLAGS should have been loaded and sanitized by the
> 'configure'
> front end.  If this is not happening any longer -- then behavior has
> changed (or
> my understanding of the behavior is wrong.)
>
> End result, everything specified in CFLAGS and LDFLAGS that is machine
> neutral
> (i.e. not -m32, or -march=i586) should be preserved and used (unless
> specifically removed for another reason.)


The configure script doesn't touch either one from the environment. The
CFLAGS env var is used as is in the makefiles. Cflags passed in via
--cflags= replace the arch cflags, however. Since we don't place anything
arch specific in cflags or ldflags, I don't see that this is an issue, and
it has a separate argument to handle arch specific cflags.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160511/5f720566/attachment-0002.html>


More information about the Openembedded-core mailing list