fusionio: Use makeLibraryPath
This commit is contained in:
parent
f1d83444a5
commit
f2e6c25dc9
@ -18,7 +18,7 @@ stdenv.mkDerivation {
|
|||||||
cp -r $TMPDIR/{etc,usr/{bin,lib,share}} $out
|
cp -r $TMPDIR/{etc,usr/{bin,lib,share}} $out
|
||||||
for BIN in $(find $out/bin -type f); do
|
for BIN in $(find $out/bin -type f); do
|
||||||
echo Patching $BIN
|
echo Patching $BIN
|
||||||
patchelf --set-interpreter "${glibc.out}/lib/ld-linux-x86-64.so.2" --set-rpath "${glibc.out}/lib:${gcc.cc}/lib:${libuuid}/lib:$out/lib" $BIN
|
patchelf --set-interpreter "${glibc.out}/lib/ld-linux-x86-64.so.2" --set-rpath "${stdenv.lib.makeLibraryPath [ glibc gcc.cc libuuid ] }:$out/lib" $BIN
|
||||||
|
|
||||||
# Test our binary to see if it was correctly patched
|
# Test our binary to see if it was correctly patched
|
||||||
set +e
|
set +e
|
||||||
|
Loading…
Reference in New Issue
Block a user