Revert "Merge pull request #28557 from obsidiansystems/binutils-wrapper"
This reverts commit0a944b345e, reversing changes made to61733ed6cc. I dislike these massive stdenv changes with unclear motivation, especially when they involve gratuitous mass renames like NIX_CC -> NIX_BINUTILS. The previous such rename (NIX_GCC -> NIX_CC) caused months of pain, so let's not do that again.
This commit is contained in:
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
|
||||
mkdir -p $out
|
||||
cp -R * $out/
|
||||
echo $libPath
|
||||
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath $libPath \
|
||||
$out/bin/dart
|
||||
'';
|
||||
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
configurePhase = ''
|
||||
cp ${r3} make/r3-make
|
||||
chmod 777 make/r3-make
|
||||
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" ./make/r3-make
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./make/r3-make
|
||||
cd make
|
||||
perl -pi -e 's#-m32##g' makefile
|
||||
perl -pi -e 's#sudo .*#echo#g' makefile
|
||||
|
||||
Reference in New Issue
Block a user