mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
cc-wrapper: fix LD_DYLD_PATH on darwin
Having multiple compilers in the build environment would result in an invalid LD_DYLD_PATH like /usr/lib/dyld/usr/lib/dyld. Since the path is hardcoded in XNU it can't be anything but /usr/lib/dyld anyway.
This commit is contained in:
parent
d119385b2e
commit
bf8c125170
@ -150,7 +150,7 @@ stdenv.mkDerivation {
|
||||
echo $dynamicLinker > $out/nix-support/dynamic-linker
|
||||
|
||||
'' + (if targetPlatform.isDarwin then ''
|
||||
printf "export LD_DYLD_PATH+=%q\n" "$dynamicLinker" >> $out/nix-support/setup-hook
|
||||
printf "export LD_DYLD_PATH=%q\n" "$dynamicLinker" >> $out/nix-support/setup-hook
|
||||
'' else ''
|
||||
if [ -e ${libc_lib}/lib/32/ld-linux.so.2 ]; then
|
||||
echo ${libc_lib}/lib/32/ld-linux.so.2 > $out/nix-support/dynamic-linker-m32
|
||||
|
Loading…
Reference in New Issue
Block a user