diff options
Diffstat (limited to 'pkgs/development/tools/misc/binutils/builder.sh')
-rwxr-xr-x | pkgs/development/tools/misc/binutils/builder.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/development/tools/misc/binutils/builder.sh b/pkgs/development/tools/misc/binutils/builder.sh index 7782ea0898898..f76eb534c558e 100755 --- a/pkgs/development/tools/misc/binutils/builder.sh +++ b/pkgs/development/tools/misc/binutils/builder.sh @@ -1,17 +1,17 @@ -#! /bin/sh +#! /bin/sh -e -. $stdenv/setup || exit 1 +. $stdenv/setup -tar xvfj $src || exit 1 -cd binutils-* || exit 1 +tar xvfj $src +cd binutils-* # Clear the default library search path. -if test "$noSysDirs" == "1"; then - echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1 +if test "$enforcePurity" = "1"; then + echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt fi -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 +./configure --prefix=$out +make +make install -strip -S $out/lib/*.a || exit 1 +strip -S $out/lib/*.a |