From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Subject: Re: [PATCH] bitbake.conf: search /lib for -native builds
Date: Tue, 17 Jan 2012 11:38:22 -0800 [thread overview]
Message-ID: <4F15CE2E.80505@linux.intel.com> (raw)
In-Reply-To: <1326385824-32201-5-git-send-email-enrico.scholz@sigma-chemnitz.de>
On 01/12/2012 08:30 AM, Enrico Scholz wrote:
> Changes to BUILD_LDFLAGS are required due to the recent movement of some
> libraries from ${libdir} to ${base_libdir}. ${base_libdir} must be now
> in the linker search path to avoid build problems of -native packages.
>
> Signed-off-by: Enrico Scholz<enrico.scholz@sigma-chemnitz.de>
> ---
> meta/conf/bitbake.conf | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 43eedad..d051363 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -49,6 +49,7 @@ bindir_native = "${prefix_native}/bin"
> sbindir_native = "${prefix_native}/sbin"
> includedir_native = "${prefix_native}/include"
> libdir_native = "${prefix_native}/lib"
> +base_libdir_native = "/lib"
> datadir_native = "${prefix_native}/share"
> bindir_cross = "/bin"
> bindir_crossscripts = "${bindir}/crossscripts"
> @@ -330,6 +331,7 @@ STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}"
> STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts"
> STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
> STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}"
> +STAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}"
> STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}"
> STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}"
> STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}"
> @@ -462,8 +464,12 @@ export CXXFLAGS = "${TARGET_CXXFLAGS}"
> export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive"
>
> export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
> + -L${STAGING_BASE_LIBDIR_NATIVE} \
> -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \
> - -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1"
> + -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \
> + -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \
> + -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \
> + -Wl,-O1"
>
> BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \
> -Wl,-rpath-link,${STAGING_LIBDIR} \
Merged into OE-Core
Thanks
Sau!
prev parent reply other threads:[~2012-01-17 19:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-12 16:30 [PATCH] bitbake.conf: search /lib for -native builds Enrico Scholz
2012-01-17 19:38 ` Saul Wold [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=4F15CE2E.80505@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=enrico.scholz@sigma-chemnitz.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