glibc_2.6.1.bb: fix powerpc/soft-float builds
authorJeremy Laine <jeremy.laine@m4x.org>
Mon, 21 Apr 2008 08:20:28 +0000 (08:20 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Mon, 21 Apr 2008 08:20:28 +0000 (08:20 +0000)
* fixes errors message stating fe_nomask.o cannot be built
* see http://sources.redhat.com/ml/libc-ports/2007-06/msg00005.html

packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch [new file with mode: 0644]
packages/glibc/glibc_2.6.1.bb

diff --git a/packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch b/packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch
new file mode 100644 (file)
index 0000000..893c754
--- /dev/null
@@ -0,0 +1,11 @@
+--- dummy-libc/ports/sysdeps/powerpc/nofpu/Makefile    2006-11-22 09:13:11.000000000 -0600
++++ libc25/ports/sysdeps/powerpc/nofpu/Makefile        2007-06-07 09:53:05.708240976 -0500
+@@ -6,7 +6,7 @@
+ endif
+ ifeq ($(subdir),math)
+-libm-support += fenv_const fe_nomask
++libm-support += fenv_const
+ CPPFLAGS += -I../soft-fp/
+ # The follow CFLAGS are a work around for GCC Bugzilla Bug 29253
+ # "expand_abs wrong default code for floating point"
index 0cbdef8..e44e6be 100644 (file)
@@ -63,7 +63,10 @@ SRC_URI_append_sh3 = " file://no-z-defs.patch;patch=1"
 SRC_URI_append_sh4 = " file://no-z-defs.patch;patch=1"
 
 # PowerPC Patches to add support for soft-float
-SRC_URI_append_powerpc = "file://powerpc-sqrt-hack.diff;patch=1"
+SRC_URI_append_powerpc = "\
+  file://powerpc-sqrt-hack.diff;patch=1 \
+  file://glibc-2.6.1-powerpc-nofpu.patch;patch=1 \
+"
 
 S = "${WORKDIR}/glibc-${PV}"
 B = "${WORKDIR}/build-${TARGET_SYS}"