summary refs log tree commit diff
path: root/pkgs/development/tools/misc/binutils-cross/builder.sh
blob: 29d3b3779b6a9fa703b64c1454c22ad6bfea3e89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
source $stdenv/setup

if test $cross = "arm-linux" ; then
  configureFlags="--target=arm-linux"
elif test $cross = "mips-linux" ; then
  configureFlags="--target=mips-linux"
elif test $cross = "mipsel-linux" ; then
  configureFlags="--target=mipsel-linux"
elif test $cross = "sparc-linux" ; then
  configureFlags="--target=sparc-linux"
elif test $cross = "powerpc-linux" ; then
  configureFlags="--target=powerpc-linux"
elif test $cross = "ppc-linux" ; then
  configureFlags="--target=powerpc-linux"
fi

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

preConfigure=patchConfigure

genericBuild