nixpkgs/pkgs/development/libraries/glibc/builder.sh

39 lines
700 B
Bash

# glibc cannot have itself in its rpath.
export NIX_NO_SELF_RPATH=1
. $stdenv/setup
postUnpack() {
cd $sourceRoot
unpackFile $linuxthreadsSrc
cd ..
}
postUnpack=postUnpack
preConfigure() {
mkdir ../build
cd ../build
configureScript=../$sourceRoot/configure
configureFlags="--enable-add-ons --disable-profile \
--with-headers=$kernelHeaders/include"
}
preConfigure=preConfigure
postInstall() {
make localedata/install-locales
rm $out/etc/ld.so.cache
(cd $out/include && ln -s $kernelHeaders/include/* .) || exit 1
# `glibcbug' causes a retained dependency on the C compiler.
rm $out/bin/glibcbug
}
postInstall=postInstall
genericBuild