From 2594b0a146eb4f5f16c71dc2d916b0d6a7297560 Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Fri, 12 Jun 2009 05:25:14 +0000 Subject: Add a sed to glibc to fix the constants passed to futex(2) in 32-bit builds. Seems to fix testsuite hangs (the tst-mutex9 process never exits, for instance). This change is in upstream git, so this can be reverted once we upgrade glibc. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8944 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/glibc.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chapter05') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 23255dfa2..e6738437f 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,6 +43,16 @@ Installation of Glibc + + Fix an error in the constants that get passed to the futex system + call in some cases, causing certain pthread_mutex operations to fail: + +cp nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig} +sed -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \ + <nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig \ + >nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S + The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory: -- cgit v1.2.3-54-g00ecf