mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
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 */ ];
|
||||
|
||||
preBuild = let
|
||||
CPPFLAGS = with stdenv; ""
|
||||
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
|
||||
+ "-Dunix";
|
||||
CXXFLAGS = "-O3 -DNDEBUG";
|
||||
in ''
|
||||
buildFlagsArray=( "CPPFLAGS=${CPPFLAGS}" "CXXFLAGS=${CXXFLAGS}" )
|
||||
'';
|
||||
CPPFLAGS = [ "-Dunix" ] ++
|
||||
lib.optional (!stdenv.isi686 && !stdenv.isx86_64) "-DNOJIT";
|
||||
CXXFLAGS = [ "-O3" "-DNDEBUG" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user