nixpkgs/pkgs-ng/development/tools/misc/binutils/builder.sh
Eelco Dolstra a6c0074fcf * More refactoring.
svn path=/nixpkgs/trunk/; revision=470
2003-11-03 16:24:47 +00:00

18 lines
332 B
Bash
Executable file

#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd binutils-* || exit 1
# Clear the default library search path.
if test "$noSysDirs" == "1"; then
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1
fi
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1