mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
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 = ''
|
||||
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${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 {})
|
||||
// (if langVhdl then rec {
|
||||
|
@ -24,10 +24,10 @@ stdenv.mkDerivation {
|
||||
interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
|
||||
for a in "$out"/bin/*; do
|
||||
patchelf --set-interpreter "$interpreter" "$a"
|
||||
patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
|
||||
patchelf --set-rpath "$out/lib:${boehmgc.out}/lib" "$a"
|
||||
done
|
||||
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
|
||||
sed -i -e "s|\-lgc|\-L${boehmgc}\/lib -lgc|" $out/lib/config.jam
|
||||
wrapProgram $out/bin/dylan-compiler --suffix PATH : ${gcc}/bin
|
||||
|
Loading…
Reference in New Issue
Block a user