3
0
Fork 0
forked from mirrors/nixpkgs

treewide: Mass replace 'boehmgc}/lib' to refer the 'out' output

This commit is contained in:
Tuomas Tynkkynen 2016-01-24 09:29:00 +02:00
parent 79738a639a
commit d005808127
2 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ stdenv.mkDerivation ({
postConfigure = '' postConfigure = ''
make configure-gcc make configure-gcc
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib}/lib@' sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib}/lib@'
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${boehmgc}/include@ ; s@^LDFLAGS = .*@& -L${boehmgc}/lib -lgc@' sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${boehmgc}/include@ ; s@^LDFLAGS = .*@& -L${boehmgc.out}/lib -lgc@'
''; '';
} else {}) } else {})
// (if langVhdl then rec { // (if langVhdl then rec {

View file

@ -24,10 +24,10 @@ stdenv.mkDerivation {
interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)" interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
for a in "$out"/bin/*; do for a in "$out"/bin/*; do
patchelf --set-interpreter "$interpreter" "$a" patchelf --set-interpreter "$interpreter" "$a"
patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a" patchelf --set-rpath "$out/lib:${boehmgc.out}/lib" "$a"
done done
for a in "$out"/lib/*.so; do for a in "$out"/lib/*.so; do
patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a" patchelf --set-rpath "$out/lib:${boehmgc.out}/lib" "$a"
done done
sed -i -e "s|\-lgc|\-L${boehmgc}\/lib -lgc|" $out/lib/config.jam sed -i -e "s|\-lgc|\-L${boehmgc}\/lib -lgc|" $out/lib/config.jam
wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin