From 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Mon, 12 Apr 2010 12:19:41 +0000 Subject: nptl/sysdeps/unix/sysv/linux/i386: enable USE___THREAD for assembler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Natanael Copa Signed-off-by: Austin Foxley --- libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch | 1 + 1 file changed, 1 insertion(+) (limited to 'libpthread/nptl/sysdeps/unix') 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 -- cgit v1.2.3