All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: nitin.a.kamble@intel.com
Cc: yocto@yoctoproject.org
Subject: Re: [PATCH 2/3] cross-canadian.bbclass: fix rpath for sdk executables
Date: Sat, 31 Mar 2012 09:57:15 +0200	[thread overview]
Message-ID: <20120331075715.GA3950@jama.jama.net> (raw)
In-Reply-To: <0f8cf941e9e7d9c25cd882bae083b536b715cd17.1333145263.git.nitin.a.kamble@intel.com>

[-- Attachment #1: Type: text/plain, Size: 3207 bytes --]

On Fri, Mar 30, 2012 at 03:52:05PM -0700, nitin.a.kamble@intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble@intel.com>
> 
> This makes the libraries located in places like this findable:
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib
> 
> Which avoids linking cross canadian sdk executables with host libraries like this:
> 
> $ ldd /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
>         linux-vdso.so.1 =>  (0x00007fffb7fff000)
>         libreadline.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libreadline.so.6 (0x00007fbfb5511000)
>         libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fbfb530c000)
>         libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fbfb50e9000)
>         libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fbfb4ec2000)
>         libz.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libz.so.1 (0x00007fbfb4cac000)
>         libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fbfb4a2a000)
>         libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fbfb480d000)
>         libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fbfb4609000)
>         libexpat.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/x86_64-oe-linux/../libexpat.so.1 (0x00007fbfb43e0000)
>         libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fbfb4059000)
>         /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003f05000000)
> 
> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> ---
>  meta/classes/cross-canadian.bbclass |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
> index e187b88..4ff092c 100644
> --- a/meta/classes/cross-canadian.bbclass
> +++ b/meta/classes/cross-canadian.bbclass
> @@ -48,7 +48,9 @@ DPKG_ARCH = "${SDK_ARCH}"
>  CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
>  CFLAGS = "${BUILDSDK_CFLAGS}"
>  CXXFLAGS = "${BUILDSDK_CFLAGS}"
> -LDFLAGS = "${BUILDSDK_LDFLAGS}"
> +LDFLAGS = "${BUILDSDK_LDFLAGS} \
> +	-Wl,-rpath-link,${STAGING_LIBDIR}/.. \
> +	 -Wl,-rpath,${libdir}/.. "

https://wiki.yoctoproject.org/wiki/Recipe_%26_Patch_Style_Guide#White_Space_Management

says you should use spaces for indentation (except shell functions and
some but not all python functions e.g populate_packages)

Maybe someone should write vim-syntax file for .bb and .bbclass :).

Cheers,

>  
>  DEPENDS_GETTEXT = "gettext-native gettext-nativesdk"
>  
> -- 
> 1.7.6.4
> 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2012-03-31  7:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30 22:28 [PATCH 0/3] Misc Fixes nitin.a.kamble
2012-03-30 22:52 ` nitin.a.kamble
2012-03-30 22:28 ` [PATCH 1/3] nasm: fix issue with repeat configure nitin.a.kamble
2012-03-30 22:52   ` nitin.a.kamble
2012-03-31 17:02   ` Richard Purdie
2012-03-30 22:28 ` [PATCH 2/3] cross-canadian.bbclass: fix rpath for sdk executables nitin.a.kamble
2012-03-30 22:52   ` nitin.a.kamble
2012-03-31  7:57   ` Martin Jansa [this message]
2012-03-31 15:39     ` Khem Raj
2012-03-31 17:02   ` Richard Purdie
2012-03-30 22:28 ` [PATCH 3/3] poky-tiny: avoid eglibc locale packaging nitin.a.kamble
2012-03-30 22:52   ` nitin.a.kamble
2012-03-30 23:26   ` Darren Hart
2012-04-01  5:14     ` Kamble, Nitin A

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=20120331075715.GA3950@jama.jama.net \
    --to=martin.jansa@gmail.com \
    --cc=nitin.a.kamble@intel.com \
    --cc=yocto@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.