pthsem: fix musl and fortify source compatibility 1479/head
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 09:51:23 +0000 (11:51 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 10:13:03 +0000 (12:13 +0200)
commitf1fbc7f51e0f82e2be2ed310a5e2df70cfb237db
tree15cfc5a79bbe1e8887864a51efa2ed11c7664bba
parent3788dd697b642c09eb6fb868e07b045453ab60d1
pthsem: fix musl and fortify source compatibility

This commit addresses two issues encountered while building pthsem for
x86_64/musl:

1) Autoconf incorrectly assumes a broken Glibc and thus falls back
   to Linux compatibility code which runs into an unsupported
   platform error with musl libc. Since musl provides a proper
   implementation of `sigaltstack(2)`, force configure to use the
   POSIX compliant code when musl libc is used.

2) The `pth_syscall.c` file undefines various libc function names
   which breaks the indirection set up by fortify-source headers,
   therefore forcibly disable fortify source in the OpenWrt Makefile.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
libs/pthsem/Makefile