From 0f8b1b1a5c52a8171d9028e1df74949aea264c72 Mon Sep 17 00:00:00 2001 From: Eric Kow Date: Wed, 30 Oct 2013 16:12:55 +0000 Subject: [PATCH] libusb1: avoid -lgcc_s on darwin close #1151 --- pkgs/development/libraries/libusb1/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index d4504a26b7f3..9a6a303fe32e 100644 --- a/pkgs/development/libraries/libusb1/default.nix +++ b/pkgs/development/libraries/libusb1/default.nix @@ -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;