[oe-commits] Koen Kooi : libffi: add hack to build libffi on softfp machines

GIT User account git at amethyst.openembedded.net
Tue Dec 16 23:41:49 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d530720d06a136c1975de8e56e58a74947cde4ae
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d530720d06a136c1975de8e56e58a74947cde4ae

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed Dec 17 00:37:39 2008 +0100

libffi: add hack to build libffi on softfp machines
* see http://lists.o-hand.com/poky/0583.html for a problem description

---

 packages/libffi/libffi_2.0+gcc4.3.2.bb |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/packages/libffi/libffi_2.0+gcc4.3.2.bb b/packages/libffi/libffi_2.0+gcc4.3.2.bb
index 50b1e5f..5a2ae1a 100644
--- a/packages/libffi/libffi_2.0+gcc4.3.2.bb
+++ b/packages/libffi/libffi_2.0+gcc4.3.2.bb
@@ -1,3 +1,4 @@
+require packages/gcc/gcc-common.inc
 SECTION = "libs"
 DESCRIPTION = "Foreign Function Interface library"
 LICENSE = "libffi"
@@ -39,11 +40,24 @@ EXTRA_OECONF = "--with-gnu-ld \
                 --enable-long-long \
                 --enable-symvers=gnu \
                 --program-prefix=${TARGET_PREFIX} \
+                ${EXTRA_OECONF_FPU} \
                 ${EXTRA_OECONF_PATHS}"
 
 EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \
                       --with-gxx-include-dir=${includedir}/c++/${PV}"
 
+# Build uclibc compilers without cxa_atexit support
+EXTRA_OECONF_append_linux               = " --enable-__cxa_atexit"
+EXTRA_OECONF_append_linux-gnueabi       = " --enable-__cxa_atexit"
+EXTRA_OECONF_append_linux-uclibc        = " --disable-__cxa_atexit"
+EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit"
+EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}"
+
+#Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
+TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
+TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
+
+
 do_configure () {
 	(cd ${S}/.. && gnu-configize) || die "failure running gnu-configize"
 	oe_runconf





More information about the Openembedded-commits mailing list