glibc 2.7: fix undefined reference
authorKoen Kooi <koen@openembedded.org>
Tue, 4 Mar 2008 18:11:23 +0000 (18:11 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 4 Mar 2008 18:11:23 +0000 (18:11 +0000)
packages/glibc/glibc-2.4/glibc-arm-IO-acquire-lock-fix.diff [new file with mode: 0644]
packages/glibc/glibc_2.7.bb

diff --git a/packages/glibc/glibc-2.4/glibc-arm-IO-acquire-lock-fix.diff b/packages/glibc/glibc-2.4/glibc-arm-IO-acquire-lock-fix.diff
new file mode 100644 (file)
index 0000000..a552cf0
--- /dev/null
@@ -0,0 +1,13 @@
+Arm needs a similar fix as http://sourceware.org/ml/libc-ports/2007-12/msg00000.html
+
+--- /tmp/stdio-lock.h  2008-03-04 18:51:15.555038993 +0100
++++ glibc-2.7/ports/sysdeps/unix/sysv/linux/arm/bits/stdio-lock.h      2008-03-04 18:51:28.445035052 +0100
+@@ -50,6 +50,8 @@
+   _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));      \
+   _IO_flockfile (_fp)
++# define _IO_acquire_lock_clear_flags2(_fp) _IO_acquire_lock (_fp)
++
+ # define _IO_release_lock(_fp) \
+   _IO_funlockfile (_fp);                                                    \
+   _IO_cleanup_region_end (0)
index 357196e..97ce488 100644 (file)
@@ -57,6 +57,7 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.bz2 \
 #         file://fixup-aeabi-syscalls.patch;patch=1 \
 #         file://zecke-sane-readelf.patch;patch=1 \
            file://ldd-unbash.patch;patch=1 \
+          file://glibc-arm-IO-acquire-lock-fix.diff;patch=1 \
           file://generic-bits_select.h \
           file://generic-bits_types.h \
           file://generic-bits_typesizes.h \