nixpkgs/pkgs/development/compilers/gcc-static-3.4/builder.sh.old
Armijn Hemel 854c34cbcb finally have a static nix via nix...
svn path=/nixpkgs/trunk/; revision=1617
2004-10-28 12:53:11 +00:00

30 lines
628 B
Bash

. $stdenv/setup
echo $PATH
export LDFLAGS="-static"
preConfigure=preConfigure
preConfigure() {
# Perform the build in a different directory.
mkdir ../build
cd ../build
configureScript=../$sourceRoot/configure
configureFlags="--enable-languages=c"
}
postInstall=postInstall
postInstall() {
# Remove precompiled headers for now. They are very big and
# probably not very useful yet.
find $out/include -name "*.gch" -exec rm -rf {} \; -prune
# Remove `fixincl' to prevent a retained dependency on the
# previous gcc.
rm -rf $out/libexec/gcc/*/*/install-tools
}
genericBuild