From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1757 Path: news.gmane.org!not-for-mail From: Luca Barbato Newsgroups: gmane.linux.lib.musl.general Subject: Re: Best bikeshed ever (feature test macros) Date: Sat, 25 Aug 2012 11:11:05 +0200 Message-ID: <503896A9.9010907@gentoo.org> References: <20120824214138.GA17792@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345885886 2660 80.91.229.3 (25 Aug 2012 09:11:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2012 09:11:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1758-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 25 11:11:27 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T5COr-0000Sk-BL for gllmg-musl@plane.gmane.org; Sat, 25 Aug 2012 11:11:25 +0200 Original-Received: (qmail 14184 invoked by uid 550); 25 Aug 2012 09:11:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 14175 invoked from network); 25 Aug 2012 09:11:22 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:15.0) Gecko/20120821 Thunderbird/15.0 In-Reply-To: <20120824214138.GA17792@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1757 Archived-At: On 8/24/12 11:41 PM, Rich Felker wrote: > Hi all, > 1. Leaving everything as it is. > > PROS: Obtaining conforming standard C environment is easy. Detecting > (for the purpose of flaming or fixing) programs failing to use feature > test macros correctly is also easy. > > CONS: Basically every program requires a feature test macro to be > added to CFLAGS in order to compile it. Using -D_GNU_SOURCE works 99% > of the time, but the other 1% of the time it will _break_ programs > that are already correctly using -D_XOPEN_SOURCE=700 or similar by > introducing nonstandard functions that pollute the namespace and > conflict with the application. Thus it becomes really hard to have a > universal working build procedure. It's also very hard to work around > broken build systems (like GCC's bootstrapping) that refuse to honor > your custom CFLAGS. Would be nice to see which would require something more first. The current musl seems working decently as-is. lu