summary refs log tree commit diff
path: root/pkgs/build-support/gcc-cross-wrapper
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2016-05-29 09:27:47 -0700
committerEric Litak <elitak@gmail.com>2016-05-31 16:28:04 -0700
commit7399d0949c4dc2d05e2c487288914e95be8ec831 (patch)
treec7ef0219ec137d9e8c8577278f60f68ea6857bd6 /pkgs/build-support/gcc-cross-wrapper
parente8ca9dca5302c86cb56a8bca1d3bc1a7b3435e85 (diff)
downloadnixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar.gz
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar.bz2
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar.lz
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar.xz
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.tar.zst
nixpkgs-7399d0949c4dc2d05e2c487288914e95be8ec831.zip
fixing libcCross related flags
(excluding darwin and mingw for now)
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/default.nix b/pkgs/build-support/gcc-cross-wrapper/default.nix
index d3494b83a87..fe2a530e1e8 100644
--- a/pkgs/build-support/gcc-cross-wrapper/default.nix
+++ b/pkgs/build-support/gcc-cross-wrapper/default.nix
@@ -44,7 +44,8 @@ stdenv.mkDerivation {
   ldWrapper = ./ld-wrapper.sh;
   utils = ./utils.sh;
   addFlags = ./add-flags;
-  inherit nativeTools nativeLibc nativePrefix gcc libc binutils;
+  inherit nativeTools nativeLibc nativePrefix gcc binutils;
+  libc = if libc ? out then libc.out else libc;
   crossConfig = if cross != null then cross.config else null;
   osxMinVersion = cross.osxMinVersion or null;
   gccLibs = if gcc != null then gccLibs else null;