* stdenv-nix-linux should more-or-less work again now.
svn path=/nixpkgs/trunk/; revision=826
This commit is contained in:
@@ -5,22 +5,22 @@ export NIX_NO_SELF_RPATH=1
|
||||
. $stdenv/setup
|
||||
|
||||
tar xvfj $glibcSrc
|
||||
(cd glibc-* && tar xvfj $linuxthreadsSrc)
|
||||
(cd glibc-* && tar xvfj $linuxthreadsSrc) || false
|
||||
|
||||
(cd glibc-* && patch -p1 < $vaargsPatch)
|
||||
(cd glibc-* && patch -p1 < $vaargsPatch) || false
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile
|
||||
../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile
|
||||
|
||||
make
|
||||
make install
|
||||
#make localedata/install-locales
|
||||
make localedata/install-locales
|
||||
strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so || true
|
||||
strip -s $out/bin/* $out/sbin/* $out/libexec/* || true
|
||||
|
||||
ln -sf /etc/ld.so.cache $out/etc/ld.so.cache
|
||||
rm $out/etc/ld.so.cache
|
||||
|
||||
(cd $out/include && ln -s $kernelHeaders/include/* .)
|
||||
(cd $out/include && ln -s $kernelHeaders/include/* .) || false
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{stdenv, fetchurl}: derivation {
|
||||
{stdenv, fetchurl, enforcePurity ? true}:
|
||||
|
||||
derivation {
|
||||
name = "binutils-2.14";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
@@ -6,6 +8,5 @@
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/binutils/binutils-2.14.tar.bz2;
|
||||
md5 = "2da8def15d28af3ec6af0982709ae90a";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
noSysDirs = stdenv.noSysDirs;
|
||||
inherit stdenv enforcePurity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user