7.4.2-binary: paxmark ghc binary

This commit is contained in:
Will Dietz 2016-12-14 18:24:53 -06:00 committed by Peter Simons
parent 56c0f5de89
commit 708070d232

View File

@ -65,6 +65,9 @@ stdenv.mkDerivation rec {
find . -type f -perm -0100 \
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${stdenv.lib.makeLibraryPath [ "$out" gmp ]}" {} \;
paxmark m ./ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
for prog in ld ar gcc strip ranlib; do