about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/binutils/builder.sh
blob: 7782ea0898898cdec451623d903ea1b573d8a042 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /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