about summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-12-30 13:53:48 +0000
committerLluís Batlle i Rossell <viric@viric.name>2012-12-30 13:53:48 +0000
commitd8b083497304ba58e8921a0a54e704d90be026b5 (patch)
tree71a11ed72db9b502a4472ec7698ba11a88748098 /pkgs/stdenv
parentcfdc532102c52ebe63fe51012362963ee7c0039b (diff)
downloadnixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar.gz
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar.bz2
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar.lz
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar.xz
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.tar.zst
nixlib-d8b083497304ba58e8921a0a54e704d90be026b5.zip
unpack-bootstrap-tools: Removing the patch of libstdc++
Although patching it made some programs run (configure tests), some others
crashed with segfault. So I don't think there is any win patching it. The
proper way to solve the bootstrap in the raspberry pi is, as far as I've been
testing, use glibc 2.17 libs in bootstrap-tools with the same ld.so name as the
bootstrapped glibc.

This is a problem inherent in our way to bootstrap, that first replaces
the glibc of a given gcc+glibc (bootstrap-tools) with gcc-wrapper tricks, and
then builds a new gcc. A nicer way would be to build a gcc without glibc,
then the glibc, then the final gcc, as we do with cross-tools.

Some comments about this problem in
https://github.com/NixOS/nixpkgs/issues/234#issuecomment-11764352
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh b/pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh
index afa949c5deb2..dcf819ad6f75 100644
--- a/pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh
+++ b/pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh
@@ -23,8 +23,7 @@ for i in $out/bin/* $out/libexec/gcc/*/*/* $out/lib/librt*; do
     LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \
         $out/bin/patchelf --set-interpreter $out/lib/ld-linux*.so.? --set-rpath $out/lib --force-rpath $i
 done
-for i in $out/lib/librt* $out/lib/libcloog* $out/lib/libppl* $out/lib/libgmp* \
-      $out/lib/libstdc++*.so*[0-9]; do
+for i in $out/lib/librt* $out/lib/libcloog* $out/lib/libppl* $out/lib/libgmp*; do
     if ! test -f $i; then continue; fi
     if test -L $i; then continue; fi
     echo patching $i