ghc: Fix compatability with new versions of ncurses
This commit is contained in:
parent
b1ed04ad1d
commit
6c43640410
@ -60,9 +60,11 @@ stdenv.mkDerivation rec {
|
|||||||
# On Linux, use patchelf to modify the executables so that they can
|
# On Linux, use patchelf to modify the executables so that they can
|
||||||
# find editline/gmp.
|
# find editline/gmp.
|
||||||
stdenv.lib.optionalString stdenv.isLinux ''
|
stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
|
mkdir -p "$out/lib"
|
||||||
|
ln -sv "${ncurses}/lib/libncurses.so" "$out/lib/libncursesw.so.5"
|
||||||
find . -type f -perm +100 \
|
find . -type f -perm +100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${ncurses}/lib:${gmp}/lib" {} \;
|
--set-rpath "$out/lib:${gmp}/lib" {} \;
|
||||||
sed -i "s|/usr/bin/perl|perl\x00 |" 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
|
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
|
for prog in ld ar gcc strip ranlib; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user