From 2b183dca4427ab476b75a851116ff42dbd000557 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 27 Aug 2009 17:45:51 -0700 Subject: gcc-4.4.1: Disable libdecnumber for uclibc target. We do not set FENV in uclibc so as a result we can not build libdecnumber. We disable it for gcc 4.4.1 uclibc targets. copysignl is in libm in uclibc so gcc complains about this function in libgcc. We see if it is uclibc powerpc softfloat then we add -lm to linker commandline. Not best but works. Signed-off-by: Khem Raj --- recipes/gcc/gcc-4.4.1.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'recipes/gcc/gcc-4.4.1.inc') diff --git a/recipes/gcc/gcc-4.4.1.inc b/recipes/gcc/gcc-4.4.1.inc index 2759ab9799..365c20157f 100644 --- a/recipes/gcc/gcc-4.4.1.inc +++ b/recipes/gcc/gcc-4.4.1.inc @@ -7,7 +7,7 @@ LICENSE = "GPLv3" DEPENDS = "mpfr gmp" -INC_PR = "r2" +INC_PR = "r3" FILESPATHPKG .= ":gcc-$PV" @@ -16,6 +16,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://100-uclibc-conf.patch;patch=1 \ file://gcc-uclibc-locale-ctype_touplow_t.patch;patch=1 \ file://gcc-disable-linux-unwind-with-libc-inhibit.patch;patch=1 \ + file://gcc-link-libgcc-with-libm.patch;patch=1 \ " # Language Overrides FORTRAN = "" @@ -24,3 +25,7 @@ JAVA = "" EXTRA_OECONF_BASE = " --enable-libssp \ --disable-bootstrap --disable-libgomp \ --disable-libmudflap" + +EXTRA_OECONF_append_linux-uclibc = " --disable-decimal-float" +EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-decimal-float" + -- cgit 1.2.3-korg