openisns: fix empty lib output

Looks like enable-shared defaults to false, so we actually
ended up with no usable object files in the lib output.

This also appears to have broken open-iscsi, as evinced by

/nix/store/[...]-binutils-2.27/bin/ld: cannot find -lisns
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:57: iscsid] Error 1

https://hydra.nixos.org/build/49437400/log/raw

With this patch, open-iscsi builds fine here.
This commit is contained in:
Joachim Fasting 2017-03-01 01:43:44 +01:00
parent 5e074f10e1
commit ab6d358ebf
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
outputs = [ "out" "lib" ];
outputInclude = "lib";
configureFlags = [ "--enable-shared" ];
installFlags = "etcdir=$(out)/etc vardir=$(out)/var/lib/isns";
installTargets = "install install_hdrs install_lib";