only link libsodium against libssp when building with gcc

This commit is contained in:
Eric Seidel 2015-02-11 14:37:30 -08:00
parent c42d36de1a
commit a86fd94ecc
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "06dabf77cz6qg7aqv5j5r4m32b5zn253pixwb3k5lm3z0h88y7cn";
};
NIX_LDFLAGS = "-lssp";
NIX_LDFLAGS = stdenv.lib.optionalString (stdenv.cc.cc.isGNU or false) "-lssp";
doCheck = true;