glibc 2.4: To build glibc for sh we need to pass no-z-defs=yes via
authorJamie Lenehan <lenehan@twibble.org>
Fri, 7 Jul 2006 06:56:37 +0000 (06:56 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 7 Jul 2006 06:56:37 +0000 (06:56 +0000)
configparams. Add a patch to do this so it builds for sh3 and sh4.

packages/glibc/glibc-2.4/no-z-defs.patch [new file with mode: 0644]
packages/glibc/glibc_2.4.bb

diff --git a/packages/glibc/glibc-2.4/no-z-defs.patch b/packages/glibc/glibc-2.4/no-z-defs.patch
new file mode 100644 (file)
index 0000000..48c6a41
--- /dev/null
@@ -0,0 +1,9 @@
+Create a configparms file which disabled no-z-defs.
+This is required to build a working glibs for sh4,
+without there will be a lot linker errors during the build.
+
+diff -duNr libc.orig/configparms libc/configparms
+--- libc.orig/configparms      1970-01-01 10:00:00.000000000 +1000
++++ libc/configparms   2006-02-23 14:08:18.000000000 +1100
+@@ -0,0 +1 @@
++no-z-defs=yes
index b816301..c45bd1b 100644 (file)
@@ -65,6 +65,10 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-2.4.tar.bz2 \
            file://etc/ld.so.conf \
            file://generate-supported.mk"
 
+# Build fails on sh3 and sh4 without additional patches
+SRC_URI_append_sh3 = " file://no-z-defs.patch;patch=1"
+SRC_URI_append_sh4 = " file://no-z-defs.patch;patch=1"
+
 S = "${WORKDIR}/glibc-2.4"
 B = "${WORKDIR}/build-${TARGET_SYS}"