mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
androidenv.androidndk: patch prebuilt 64bit binaries
This commit is contained in:
parent
f5c2960a11
commit
ec8f320797
1 changed files with 10 additions and 0 deletions
|
@ -89,6 +89,16 @@ let
|
|||
do
|
||||
wrapProgram "$(pwd)/$i" --prefix PATH : "${runtime_paths}"
|
||||
done
|
||||
|
||||
${stdenv.lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
|
||||
for i in ${pkg_path}/prebuilt/linux-x86_64/bin/*
|
||||
do
|
||||
if ! isELF $i; then continue; fi
|
||||
patchelf --set-interpreter ${stdenv.cc.libc.out}/lib/ld-linux-x86-64.so.2 $i
|
||||
patchelf --set-rpath ${stdenv.cc.cc.lib}/lib64 $i
|
||||
done
|
||||
''}
|
||||
|
||||
# make some executables available in PATH
|
||||
mkdir -pv ${bin_path}
|
||||
for i in \
|
||||
|
|
Loading…
Reference in a new issue