zpaq: cleanup and fix cross compilation
This commit is contained in:
parent
8aeafc25c9
commit
c9f08ace52
@ -13,17 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ perl /* for pod2man */ ];
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
||||||
|
|
||||||
preBuild = let
|
CPPFLAGS = [ "-Dunix" ] ++
|
||||||
CPPFLAGS = with stdenv; ""
|
lib.optional (!stdenv.isi686 && !stdenv.isx86_64) "-DNOJIT";
|
||||||
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
|
CXXFLAGS = [ "-O3" "-DNDEBUG" ];
|
||||||
+ "-Dunix";
|
|
||||||
CXXFLAGS = "-O3 -DNDEBUG";
|
|
||||||
in ''
|
|
||||||
buildFlagsArray=( "CPPFLAGS=${CPPFLAGS}" "CXXFLAGS=${CXXFLAGS}" )
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
|
||||||
installFlags = [ "PREFIX=$(out)" ];
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user