summaryrefslogtreecommitdiff
path: root/packages/glibc
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-07-07 06:56:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-07 06:56:37 +0000
commit9e7357192f5b635576a412aba335a2677ea5964c (patch)
tree61d1b4f232ca16a04ade1f98ab9918c7da87f98a /packages/glibc
parenta64033ce2a9d11b1336f7dee39203bbcee43f579 (diff)
glibc 2.4: To build glibc for sh we need to pass no-z-defs=yes via
configparams. Add a patch to do this so it builds for sh3 and sh4.
Diffstat (limited to 'packages/glibc')
-rw-r--r--packages/glibc/glibc-2.4/no-z-defs.patch9
-rw-r--r--packages/glibc/glibc_2.4.bb4
2 files changed, 13 insertions, 0 deletions
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
index 0000000000..48c6a41267
--- /dev/null
+++ b/packages/glibc/glibc-2.4/no-z-defs.patch
@@ -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
diff --git a/packages/glibc/glibc_2.4.bb b/packages/glibc/glibc_2.4.bb
index b8163012ec..c45bd1b5e5 100644
--- a/packages/glibc/glibc_2.4.bb
+++ b/packages/glibc/glibc_2.4.bb
@@ -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}"