On 2017/04/23 20:59, Greg Steuck wrote:
> 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?

You can do something like

 make CFLAGS=""

Though if you're rebuilding the same port multiple times with various
small changes, ccache will often do quite well (USE_CCACHE=Yes in mk.conf).

> > I don't think there is a "cookie cutter" approach, different situations
> > need different things.
> >
> 
> Glad I asked then.
> 
> BTW, Stuart, fortuitous timing with your gtest upgrade. I was about to
> embark on that to make new protobuf testable.

:)

Reply via email to