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>
This commit is contained in:
Shea Levy 2013-03-10 19:47:59 -04:00
parent 5e3e07293f
commit 1c86181857

View File

@ -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}
'';