summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-04-12 12:19:41 +0000
committerAustin Foxley <austinf@cetoncorp.com>2010-04-12 05:33:12 -0700
commit447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 (patch)
tree3dd3c5193ea77b4320fa3435bbb178d411e53fa5 /libpthread/nptl/sysdeps/unix/sysv
parent6436d7c68544657e87ce6f46fcfe250c435a953c (diff)
nptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assembler
NPTL defines errno as __thread variable. Define USE___THREAD so proper errno assignment is used in assembly files. This fixes segfault while building python. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
index b36c04206..4d52c904e 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
@@ -7,6 +7,7 @@
LINUX_ARCH_DIR:=$(top_srcdir)libpthread/nptl/sysdeps/unix/sysv/linux/i386
LINUX_ARCH_OUT:=$(top_builddir)libpthread/nptl/sysdeps/unix/sysv/linux/i386
+ASFLAGS += -DUSE___THREAD
libpthread_SSRC = pt-vfork.S clone.S pthread_spin_unlock.S pthread_once.S
libpthread_CSRC = pthread_spin_init.c pt-__syscall_error.c