nixpkgs/pkgs/binutils/binutils-build.sh
Eelco Dolstra 23d90c2324 * Patched binutils so that ld no longer searches any of the "default" directories
(/lib, ...).  So unless a directory is explicitly added using `-L' it won't we 
  searched.  This has already revealed that libxml has a hidden dependance on libz.

svn path=/nixpkgs/trunk/; revision=357
2003-08-25 19:26:46 +00:00

16 lines
291 B
Bash
Executable file

#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd binutils-* || exit 1
# Clear the default library search path.
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1