1 |
2016-06-16 23:37 GMT+08:00 Lei Zhang <zhanglei.april@×××××.com>: |
2 |
> Plan for today: |
3 |
> - study the _GNU_SOURCE issue in libc++ |
4 |
> |
5 |
> Progress today: |
6 |
> - figure out the set of fine-grained FTMs needed to build libcxx against musl |
7 |
> |
8 |
> There're still some quirks in glibc. Without _GNU_SOURCE, libcxx |
9 |
> complains about not finding towctrans, wctrans, etc, which are not |
10 |
> hidden by any FTM at all. |
11 |
|
12 |
After tracking the intricate macros in glibc's headers, I found that a |
13 |
bunch of symbols, including towctrans and wctrans mentioned above, are |
14 |
hidden when the following condition holds: |
15 |
|
16 |
__XOPEN_SOURCE >= 500 && !defined(_GNU_SOUREC) |
17 |
|
18 |
while these symbols are not hidden by any macros in musl. So again, |
19 |
_GNU_SOURCE seems hard to circumvent... |
20 |
|
21 |
|
22 |
Lei |