libusb1: avoid -lgcc_s on darwin

close #1151
This commit is contained in:
Eric Kow 2013-10-30 16:12:55 +00:00 committed by Evgeny Egorochkin
parent 58f520601c
commit 0f8b1b1a5c

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig ];
propagatedBuildInputs = stdenv.lib.optional (stdenv.isLinux) udev;
NIX_LDFLAGS = "-lgcc_s";
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
meta = {
homepage = http://www.libusb.org;