One last thing, in libpthread commit 8b48173fdc8f52a234ff9d3d1de5277c60d7eea4 the Makefile expects shm-directory.c to be present in sysdeps/generic/ but it is not.
This file only exists in glibc 2.21 and is not yet implemented in our libpthread. Thanks you, Manolis