Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] ppl: fix libgmp paths
Date: Tue,  6 Dec 2011 13:27:10 +0100	[thread overview]
Message-ID: <1323174430-24886-1-git-send-email-Martin.Jansa@gmail.com> (raw)
In-Reply-To: <CA+chaQfBfNs57Be9N-T1QzfZ=aXzDMN7QjKeKV8ZGnULORZjng@mail.gmail.com>

* before this patch:
configure:10139: checking how to link with libgmp
configure:10612: result: /usr/lib/libgmp.so
configure:10654: checking how to link with libgmpxx
configure:11127: result: /usr/lib/libgmpxx.so /usr/lib/libgmp.so
...
ac_cv_libgmp_cppflags=
ac_cv_libgmp_libs=/usr/lib/libgmp.so
ac_cv_libgmp_ltlibs='-L/usr/lib -lgmp'
ac_cv_libgmp_prefix=/usr
ac_cv_libgmpxx_cppflags=
ac_cv_libgmpxx_libs='/usr/lib/libgmpxx.so /usr/lib/libgmp.so'
ac_cv_libgmpxx_ltlibs='-L/usr/lib -lgmpxx -L/usr/lib -lgmp'
ac_cv_libgmpxx_prefix=/usr

* after this patch
configure:10139: checking how to link with libgmp
configure:10612: result: -lgmp
configure:10654: checking how to link with libgmpxx
configure:11127: result: -lgmpxx -lgmp
...
ac_cv_libgmp_cppflags=
ac_cv_libgmp_libs=-lgmp
ac_cv_libgmp_ltlibs=-lgmp
ac_cv_libgmp_prefix=
ac_cv_libgmpxx_cppflags=
ac_cv_libgmpxx_libs='-lgmpxx -lgmp'
ac_cv_libgmpxx_ltlibs='-lgmpxx -lgmp'
ac_cv_libgmpxx_prefix=

* but for ppl-native it worked before as well as after this patch like this:
configure:10139: checking how to link with libgmp
configure:10612: result: /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libgmp.so -Wl,-rpath -Wl,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib
configure:10654: checking how to link with libgmpxx
configure:11127: result: /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libgmpxx.so /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libgmp.so -Wl,-rpath -Wl,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-support/ppl/ppl_0.11.2.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-support/ppl/ppl_0.11.2.bb b/meta/recipes-support/ppl/ppl_0.11.2.bb
index 7536364..b31fc4d 100644
--- a/meta/recipes-support/ppl/ppl_0.11.2.bb
+++ b/meta/recipes-support/ppl/ppl_0.11.2.bb
@@ -11,6 +11,10 @@ SRC_URI[sha256sum] = "e3fbd1c19ef44c6f020951807cdb6fc6a8153cd3a5c53b0ab9cf4c4f6e
 S = "${WORKDIR}/ppl-${PV}"
 BBCLASSEXTEND = "native nativesdk"
 
-EXTRA_OECONF = "--enable-watchdog --disable-debugging --disable-assertions --disable-ppl_lcdd --disable-ppl_lpsol --disable-ppl_pips --enable-interfaces='c cxx'"
+# do we have something shorter then this? or can native.bbclass overwrite STAGING_DIR_HOST like nativesdk does?
+GMP_PREFIX = "${STAGING_DIR_HOST}"
+GMP_PREFIX_virtclass-native = "${STAGING_DIR_NATIVE}"
+
+EXTRA_OECONF = "--with-gmp-prefix=${GMP_PREFIX} --enable-watchdog --disable-debugging --disable-assertions --disable-ppl_lcdd --disable-ppl_lpsol --disable-ppl_pips --enable-interfaces='c cxx'"
 
 acpaths = "-I m4"
-- 
1.7.8




  reply	other threads:[~2011-12-06 12:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-06  5:21 [PATCH 0/6] Enable cloog/ppl when compiling gcc Khem Raj
2011-12-06  5:21 ` [PATCH 1/6] tcmode-default: Remove pinning u-boot-mkimage-native to non-existing version Khem Raj
2011-12-06  5:21 ` [PATCH 2/6] cloog-ppl,ppl: Add new recipes Khem Raj
2011-12-06 11:41   ` Martin Jansa
2011-12-06 12:27     ` Martin Jansa [this message]
2011-12-06 12:49       ` [PATCH] ppl: fix libgmp paths Koen Kooi
2011-12-07 21:19       ` Khem Raj
2011-12-08  0:12         ` Richard Purdie
2011-12-08  8:02           ` Khem Raj
2011-12-07 17:03     ` [PATCH 2/6] cloog-ppl,ppl: Add new recipes Khem Raj
2011-12-07 17:07       ` Martin Jansa
2011-12-06  5:21 ` [PATCH 3/6] gcc-4.6: Enable PPL and ClooG support Khem Raj
2011-12-06  5:21 ` [PATCH 4/6] gnutls: Fix fix-gettext-version.patch Khem Raj
2011-12-06  5:21 ` [PATCH 5/6] eglibc: Update 2.14 recipes to latest SVN tip Khem Raj
2011-12-06  5:21 ` [PATCH 6/6] gcc: Backport patch from trunk to fix ICE seen on armv7 with mesa-xlib Khem Raj
2011-12-06 14:37 ` [PATCH 0/6] Enable cloog/ppl when compiling gcc Richard Purdie
2011-12-07 16:59   ` Khem Raj
2011-12-06 14:39 ` Richard Purdie

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=1323174430-24886-1-git-send-email-Martin.Jansa@gmail.com \
    --to=martin.jansa@gmail.com \
    --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