diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-01 21:54:40 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-01 21:54:40 +0100 |
commit | 01f8736f297da40f0ee327d73794579be2ec3ecf (patch) | |
tree | 4ec7aac9d5006bec86a7bd6af19be766d3ed29d1 | |
parent | 714413a7694ff534855e9e5904899695eac6c9bb (diff) |
Let libc get sigthread stack layout in static builds
Libc only uses a weak reference, we need a stronger reference to get the
symbol from libpthread2.a
* libpthread.a (pthread_getattr_np, pthread_attr_getstack): Add references.
* libpthread_pic.a (pthread_getattr_np, pthread_attr_getstack): Likewise.
-rw-r--r-- | libpthread.a | 3 | ||||
-rw-r--r-- | libpthread_pic.a | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libpthread.a b/libpthread.a index 926315b..a87be26 100644 --- a/libpthread.a +++ b/libpthread.a @@ -16,5 +16,8 @@ EXTERN(__mutex_unlock_solid) EXTERN(_cthreads_flockfile) EXTERN(_cthreads_funlockfile) EXTERN(_cthreads_ftrylockfile) +/* To get the sigthread stack layout on fork */ +EXTERN(pthread_getattr_np) +EXTERN(pthread_attr_getstack) GROUP(-lpthread2 -lihash -lrt) diff --git a/libpthread_pic.a b/libpthread_pic.a index 5673b4e..85d5231 100644 --- a/libpthread_pic.a +++ b/libpthread_pic.a @@ -16,5 +16,8 @@ EXTERN(__mutex_unlock_solid) EXTERN(_cthreads_flockfile) EXTERN(_cthreads_funlockfile) EXTERN(_cthreads_ftrylockfile) +/* To get the sigthread stack layout on fork */ +EXTERN(pthread_getattr_np) +EXTERN(pthread_attr_getstack) GROUP(-lpthread2_pic -lihash_pic) |