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>
|
|
||
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
|
|
|
12 |
|
|
13 |
|
13 |
|
14 |
|
14 |
|
15 |
|
15 |
|
|
|
||
21 |
|
21 |
|
22 |
|
22 |
|
23 |
|
23 |
|
|
24 |
|
|
24 |
|
25 |
|
25 |
|
26 |
|
26 |
|
27 |
|
|
|
||
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
40 |
|
48 |
|
41 |
|
49 |
|
42 |
|
50 |
|