nixpkgs/pkgs/development/tools/misc/binutils/builder.sh
Eelco Dolstra 48c3faca51 * Renamed pkgs-ng to pkgs.
svn path=/nixpkgs/trunk/; revision=502
2003-11-14 09:59:13 +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