Gentoo Archives: gentoo-musl

From: Lei Zhang <zhanglei.april@×××××.com>
To: Eric Fiselier <eric@××××.ca>
Cc: Clang Dev <cfe-dev@××××××××××.org>, gentoo-musl@l.g.o
Subject: [gentoo-musl] Re: [cfe-dev] Clang++ always defines _GNU_SOURCE
Date: Tue, 14 Jun 2016 09:55:03
Message-Id: CAOYuCc2gri8jhmwLrHMfSuC5ihQzJpVg7dQ42dP3rYfHj=bDFQ@mail.gmail.com
1 2016-06-14 16:54 GMT+08:00 Eric Fiselier <eric@××××.ca>:
2 >> Does libc++ also rely on this macro to work on Linux?
3 >
4 > Yes. Adding -U_GNU_SOURCE during the libc++ build results in a litany of
5 > errors.
6 > The libc++ headers depend on a number of C library symbols that only get
7 > defined when -D_GNU_SOURCE=1 is present.
8
9 Is it feasible to use some finer-grain control like _ISOC99_SOURCE,
10 instead of resorting to the too versatile _GNU_SOURCE?
11
12 I'd be willing to work out such a patch to libc++, if it makes sense.
13
14
15 Lei

Replies

Subject Author
Re: [gentoo-musl] Re: [cfe-dev] Clang++ always defines _GNU_SOURCE "Anthony G. Basile" <blueness@g.o>