nixpkgs/pkgs-ng/development/tools/binutils/builder.sh
Eelco Dolstra 646a101086 * Refactoring.
* README contains notes on hierarchy structure.

svn path=/nixpkgs/trunk/; revision=469
2003-11-03 16:20:16 +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