forked from mirrors/nixpkgs
b90781ec21
the new $NIX_GCC/nix-support/dynamic-linker file to locate the dynamic linker directly (don't hardcode ld-linux.so.2). svn path=/nixpkgs/trunk/; revision=6873
11 lines
244 B
Bash
11 lines
244 B
Bash
source $stdenv/setup
|
|
|
|
postBuild=postBuild
|
|
postBuild () {
|
|
find . -type f -perm +100 \
|
|
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
--set-rpath "$readline/lib:$ncurses/lib" {} \;
|
|
}
|
|
|
|
genericBuild
|