zpaqd: fix cross compilation

This commit is contained in:
Nick Cao 2022-01-09 09:44:43 +08:00
parent 8aeafc25c9
commit a2aee62573
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ unzip ];
buildPhase = ''
g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so
g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd
$CXX ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so
$CXX ${compileFlags} -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd
'';
installPhase = ''