From: | Lei Zhang <zhanglei.april@×××××.com> |
---|---|
To: | Luca Barbato <lu_zero@g.o> |
Cc: | gentoo-musl@l.g.o |
Subject: | Re: [gentoo-musl] [GSoC] _GNU_SOURCE in C++ |
Date: | Tue, 14 Jun 2016 09:17:56 |
Message-Id: | CAOYuCc2b2v2wBLGjBzkGRNdKe1gV8uSqnCLFxnxyodZuQ9Ym5g@mail.gmail.com |
1 | 2016-06-14 17:12 GMT+08:00 Luca Barbato <lu_zero@g.o>: |
2 | > On 14/06/16 10:28, Lei Zhang wrote: |
3 | >> 2016-06-14 16:10 GMT+08:00 Felix Janda <felix.janda@××××××.de>: |
4 | >>> Take a look at the discussion at |
5 | >>> |
6 | >>> http://www.openwall.com/lists/musl/2014/04/15/3 |
7 | >> |
8 | >> And some view from the LLVM side: |
9 | >> |
10 | >> http://article.gmane.org/gmane.comp.compilers.clang.devel/46390 |
11 | >> |
12 | >> IMHO, the real problem is the abuse of _GNU_SOURCE by C++ compiler. |
13 | >> The decisions made by LLVM and musl both look reasonable to me. |
14 | >> |
15 | > |
16 | > -U_GNU_SOURCE would make you get through the problem for the time being? |
17 | > |
18 | > Given you aren't using libstdc++ in that case, assuming libcxx does not |
19 | > have the need probably might be the easiest workaround. |
20 | |
21 | Unfortunately libc++ depends on this macro as well: |
22 | |
23 | http://lists.llvm.org/pipermail/cfe-dev/2016-June/049447.html |
24 | |
25 | I'm imagining some ugly hacks on LLVM now... |
26 | |
27 | |
28 | Lei |