Greg Steuck <g...@nest.cx> writes:

> Thanks for all suggestions.
>
> On Sun, Apr 23, 2017 at 12:52 PM Stuart Henderson <s...@spacehopper.org>
> wrote:
>
>> On 2017/04/23 21:18, Jeremie Courreges-Anglas wrote:
>> > Greg Steuck <g...@nest.cx> writes:
>> >
>> > > On Sun, Apr 23, 2017 at 12:07 AM Greg Steuck <g...@nest.cx> wrote:
>> > >
>> > >> I found some references to BSD_SOURCE and POSIX_C_SOURCE as being
>> related,
>> > >> but I don't see a cookie-cutter recipe to borrow, so I thought I
>> should ask.
>> > >>
>> > >
>> > > Adding CXXFLAGS="-D_POSIX_SOURCE" to CONFIGURE_ENV is doing the trick.
>> Is
>> > > this the canonical approach?
>> >
>> > Not really, because then you're overriding CXXFLAGS (-O2 -pipe by
>> > default).
>>
>
> That it does. It was a bit of a boon though for fast iteration :) Can I get
> the effect on the command line somehow to avoid building -O2 when I want to
> e.g. run the tests more quickly?

I sometimes abuse DEBUG for this kind of things.

  make clean test DEBUG=-O0

But note that running tests with -O0 could hide bugs, probably not
a good idea.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to