summary refs log tree commit diff
path: root/pkgs/development/tools/misc/binutils/builder.sh
blob: f76eb534c558ec32167006cc4add8917d7c55d6f (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 "$enforcePurity" = "1"; then
    echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
fi

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

strip -S $out/lib/*.a