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
19 lines
439 B
Bash
19 lines
439 B
Bash
source $stdenv/setup
|
|
|
|
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
|
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
|
|
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
|
fi
|
|
|
|
configureScript=./Configure
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
|
dontAddPrefix=1
|
|
|
|
postInstall() {
|
|
ensureDir "$out/nix-support"
|
|
cp $setupHook $out/nix-support/setup-hook
|
|
}
|
|
postInstall=postInstall
|
|
|
|
genericBuild
|