]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Makefile
mdmon: satisfy glibc tls abi requirements with pthreads
authorDan Williams <dan.j.williams@intel.com>
Tue, 6 Jul 2010 19:48:56 +0000 (12:48 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 6 Jul 2010 19:48:56 +0000 (12:48 -0700)
commitf4190c2f12527e37304f7c185afa0449fa9dee1c
tree356a2ab1431d08d161df80f03d7a45c088bccee6
parent1538aca5cbbd99be47657e0ca0b7e2186426a1b1
mdmon: satisfy glibc tls abi requirements with pthreads

Setting up a proper tls descriptor is required to conform to the abi
[1].  Until it can be implemented in mdmon use pthreads instead of
clone(2) to let glibc handle the details.  The old behaviour can be had
by un-defining USE_PTHREADS.

Note, the "O2" builds need LDFLAGS now to pick up the '-pthread' option.

[1]: http://people.redhat.com/drepper/tls.pdf

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Makefile
mdmon.c