[Nix-dev] Re: [Nix-commits] SVN commit: nix - r24072 - nixpkgs/trunk/pkgs/development/libraries/pcre
Eelco Dolstra
e.dolstra at tudelft.nl
Tue Oct 5 16:08:56 CEST 2010
Hi,
On 10/05/2010 04:05 PM, Peter Simons wrote:
> >> + CPPFLAGS=-NDEBUG CFLAGS=-O3 CXXFLAGS=${if stdenv.isDarwin then "-O0" else "-O3"}
> >
> > I've reverted this and the next commit because it should go into the stdenv
> > branch. ("pcre" is a dependency of stdenv.)
>
> well, without that change, pcre doesn't compile on Darwin, which is a
> bit of a problem precisely because pcre is part of stdenv.
Can't you write it as
configureFlags = ''
... old stuff ...
'' + optionalString stdenv.isDarwin "CXXFLAGS=-O3";
?
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list