From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] bitbake.conf: BUILD_LDFLAGS: use $ORIGIN in the -rpath rather than a full path.
Date: Thu, 20 Aug 2009 01:06:07 -0400 [thread overview]
Message-ID: <20090820050607.GJ32010@denix.org> (raw)
In-Reply-To: <b6ebd0a50908192153i2dbd6a74ve0e4337d76e9a474@mail.gmail.com>
On Wed, Aug 19, 2009 at 09:53:49PM -0700, Chris Larson wrote:
> Yeah, its one of many changes needed to get things relocatable enough
> to be able to use prebuilt binaries / packaged staging packages
> amongst a group of developers, for example. This is just one piece of
> the puzzle, of course. Ideally, more open source projects would be
> properly relocatable, and we wouldn't need so many hacks. We ended up
> doing a lot of things to work around reloc issues in native/cross
> recipes, for MVL6. Everything from exporting a pile of new env vars
> to writing wrapper scripts and the like.. yech. Still, it's a worthy
> goal, and the benefits would be worthwhile, so I think we should start
> taking the steps in that direction.
Ah, relocatable pstage - a worthy goal! :)
Acked-by: Denys Dmytriyenko <denis@denix.org>
> On Wed, Aug 19, 2009 at 9:18 PM, Denys Dmytriyenko<denis@denix.org> wrote:
> > On Wed, Aug 19, 2009 at 08:24:39PM -0700, Chris Larson wrote:
> >> Signed-off-by: Chris Larson <clarson@mvista.com>
> >
> > Hmm, interesting. I didn't know about $ORIGIN...
> > But what is the benefit here? To be able to move $TMPDIR?
> >
> >> ---
> >> conf/bitbake.conf | 2 +-
> >> 1 files changed, 1 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> >> index 371bf8e..9cb6039 100644
> >> --- a/conf/bitbake.conf
> >> +++ b/conf/bitbake.conf
> >> @@ -447,7 +447,7 @@ export SDK_CXXFLAGS = "${SDK_CFLAGS} -fpermissive"
> >>
> >> export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
> >> -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \
> >> - -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1"
> >> + -Wl,-rpath,\\\$\$ORIGIN/${@base_path_relative(d.getVar('STAGING_BINDIR_NATIVE', 1), d.getVar('STAGING_LIBDIR_NATIVE', 1))} -Wl,-O1"
> >>
> >> export LDFLAGS = "${TARGET_LDFLAGS}"
> >> export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
> >> --
> >> 1.6.0
> >>
> >>
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel@lists.openembedded.org
> >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
>
>
>
> --
> Chris Larson
> clarson at kergoth dot com
> clarson at mvista dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Software Engineer
> MontaVista Software, Inc.
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2009-08-20 5:23 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 3:24 [PATCH] cross.bbclass: keep TARGET_SYS & TARGET_PREFIX independent Chris Larson
2009-08-20 3:24 ` [PATCH] patch.bbclass: catch exceptions raised in the Resolve() Chris Larson
2009-08-20 3:24 ` [PATCH] patch.bbclass: Add "git" patchtool mechanism, which uses git-apply Chris Larson
2009-08-20 3:24 ` [PATCH] kernel.bbclass: Set EXTRA_OEMAKE to null for kernel Chris Larson
2009-08-20 3:24 ` [PATCH] kernel.bbclass: Install & package symvers as /boot/Module.symvers-<ver> Chris Larson
2009-08-20 3:24 ` [PATCH] bitbake.conf: Kill CCACHE. Implicit, automatic use of things which can fail is bad Chris Larson
2009-08-20 3:24 ` [PATCH] bitbake.conf: Add export for cross NM Chris Larson
2009-08-20 3:24 ` [PATCH] bitbake.conf: BUILD_LDFLAGS: use $ORIGIN in the -rpath rather than a full path Chris Larson
2009-08-20 3:24 ` [PATCH] bitbake.conf: only pass --no-check-certificate if wget supports it Chris Larson
2009-08-20 4:18 ` [PATCH] bitbake.conf: BUILD_LDFLAGS: use $ORIGIN in the -rpath rather than a full path Denys Dmytriyenko
2009-08-20 4:53 ` Chris Larson
2009-08-20 5:06 ` Denys Dmytriyenko [this message]
2009-08-20 5:49 ` [PATCH] bitbake.conf: Add export for cross NM Holger Hans Peter Freyther
2009-08-20 4:06 ` [PATCH] bitbake.conf: Kill CCACHE. Implicit, automatic use of things which can fail is bad Denys Dmytriyenko
2009-08-20 5:49 ` Holger Hans Peter Freyther
2009-08-20 7:32 ` Graham Gower
2009-08-20 7:43 ` Denys Dmytriyenko
2009-08-20 12:09 ` Martyn Welch
2009-08-20 12:05 ` [PATCH] kernel.bbclass: Install & package symvers as /boot/Module.symvers-<ver> Michael Smith
2009-08-20 3:43 ` [PATCH] kernel.bbclass: Set EXTRA_OEMAKE to null for kernel Denys Dmytriyenko
2009-08-20 3:55 ` [PATCH] patch.bbclass: Add "git" patchtool mechanism, which uses git-apply Denys Dmytriyenko
2009-08-20 12:04 ` [PATCH] cross.bbclass: keep TARGET_SYS & TARGET_PREFIX independent Michael Smith
2009-08-20 15:21 ` Chris Larson
2009-08-20 16:11 ` Michael Smith
2010-02-25 18:28 ` Tom Rini
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=20090820050607.GJ32010@denix.org \
--to=denis@denix.org \
--cc=openembedded-devel@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