Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 28 May 2015 11:24:42 +0200
From: Shiz <hi@...z.me>
To: musl@...ts.openwall.com
Subject: Re: [PATCH v2] configure: work around compilers that merely warn for unknown options

> On 28 May 2015, at 06:53, Rob Landley <rob@...dley.net> wrote:
> 
> https://github.com/landley/toybox/commit/a913d92bad65
> 
> Specifically the bit about gcc 4.6 warning about the unknown
> -Wno-be-stupid _only_ if it was already producing another warning...
> 
> Rob

I hadn’t, thanks. I’m unsure if there’s a clean way to integrate this
checking quirk in the configure script, since I’m not at all a huge fan of
searching command line output like that: for all you know it might say
something like "-Wno-string-plus-int is going to be the default sometime
in the future" (like Apple LLVM has been known to say for
-Wunused-command-line-argument, coincidentally), and grepping for specific
error messages seems more finicky and/or prone to breakage than anything.

I suppose this is best handled if we happen to come across such a problematic
flag first: no need to optimise for cases that aren’t there yet.

-S

Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.