Merge #31209: cc-wrapper: Fix if dynamicLinker not found

This commit is contained in:
Vladimír Čunát 2017-11-06 13:07:43 +01:00
commit c8c6a1edb5
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -286,7 +286,7 @@ stdenv.mkDerivation {
*) echo "Multiple dynamic linkers found for platform '${targetPlatform.config}'." >&2;;
esac
if [ -n "$dynamicLinker" ]; then
if [ -n "''${dynamicLinker:-}" ]; then
echo $dynamicLinker > $out/nix-support/dynamic-linker
'' + (if targetPlatform.isDarwin then ''