LLVM-3.9: Fix RPATH in cross compile builds

This error was cause by multiple-outputs.sh not setting
NIX_CROSS_LDFLAGS

+6
+6
pkgs/development/compilers/llvm/3.9/llvm.nix
··· 81 preBuild = '' 82 mkdir -p $out/ 83 ln -sv $PWD/lib $out 84 ''; 85 86 cmakeFlags = with stdenv; [
··· 81 preBuild = '' 82 mkdir -p $out/ 83 ln -sv $PWD/lib $out 84 + '' 85 + + # This is a good candidate for using the `placeholder` primitive when it's released 86 + # This should hopefully be unnecessary once 87 + # https://github.com/NixOS/nixpkgs/pull/25047 is merged 88 + stdenv.lib.optionalString (buildPlatform != hostPlatform && enableSharedLibraries) '' 89 + export NIX_CROSS_LDFLAGS="-rpath $lib/lib -rpath $lib/lib64 $NIX_CROSS_LDFLAGS" 90 ''; 91 92 cmakeFlags = with stdenv; [