forked from mirrors/nixpkgs
treewide: Mass replace 'boehmgc}/lib' to refer the 'out' output
This commit is contained in:
parent
79738a639a
commit
d005808127
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue