summary refs log tree commit diff
path: root/pkgs/development/tools/misc/binutils/builder.sh
blob: 6de59a675d759394dc504c3016f687b92aa4323a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh -e

. $stdenv/setup

tar xvfj $src
cd binutils-*

# Clear the default library search path.
if test "$noSysDirs" = "1"; then
    echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
fi

./configure --prefix=$out
make
make install

strip -S $out/lib/*.a