Patchwork sigaction: fix for THREADS_NATIVE

login
register
mail settings
Submitter Baruch Siach
Date Oct. 25, 2013, 5:57 a.m.
Message ID <5bf3e903eef9245b0b15e95b46f968c73b3d8f16.1382680605.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/286084/
State New
Headers show

Comments

Baruch Siach - Oct. 25, 2013, 5:57 a.m.
Commit 9c4fce55a (nptl: remove sigaction, sigprocmask, and sigfillset from
libpthread) removed pt-sigaction.c from the build to fix static build.
However, since the libc sigaction is weak when HAS_THREADS is enabled, static
build is not be affected. Tested for xtensa target.

Fixes nptl/tst-signal7.

Cc: Austin Foxley <austinf@cetoncorp.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 libpthread/nptl/sysdeps/pthread/Makefile.in | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/libpthread/nptl/sysdeps/pthread/Makefile.in b/libpthread/nptl/sysdeps/pthread/Makefile.in
index add3a8e..5713068 100644
--- a/libpthread/nptl/sysdeps/pthread/Makefile.in
+++ b/libpthread/nptl/sysdeps/pthread/Makefile.in
@@ -33,6 +33,7 @@  libpthread_pthread_CSRC = \
 	pthread_spin_init.c \
 	pthread_spin_unlock.c \
 	pt-longjmp.c \
+	pt-sigaction.c \
 	tpp.c
 CFLAGS-pthread = $(SSP_ALL_CFLAGS) -DNOT_IN_libc -DIS_IN_libpthread
 CFLAGS-pthread_barrier_wait.c = -D_GNU_SOURCE