glibc-2.17: Don't link to stdenv.lib.gcc if it's null.

This fixes the tarball

Signed-off-by: Shea Levy <shea@shealevy.com>
wip/yesman
Shea Levy 11 years ago
parent 5e3e07293f
commit 1c86181857
  1. 4
      pkgs/development/libraries/glibc/2.17/common.nix

@ -143,7 +143,9 @@ stdenv.mkDerivation ({
configureScript="`pwd`/../$sourceRoot/configure"
makeFlags="$makeFlags BUILD_LDFLAGS=-Wl,-rpath,${stdenv.gcc.libc}/lib"
${stdenv.lib.optionalString (stdenv.gcc.libc != null)
''makeFlags="$makeFlags BUILD_LDFLAGS=-Wl,-rpath,${stdenv.gcc.libc}/lib"''
}
${preConfigure}
'';

Loading…
Cancel
Save