nixpkgs/pkgs-ng/devel/tools/binutils/builder.sh
Eelco Dolstra 1894a8b86c * Converting packages. This is the minimal Nix stdenv for building
the ATerm library.

svn path=/nixpkgs/trunk/; revision=459
2003-11-02 17:42:19 +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