make-bootstrap-tools-cross.nix: Add/fix some .so dependencies
- cloog, ppl, cloogppl aren't used by recent GCCs. Kill references to them. - Use correct versions of isl, as the current GCC depends on non-default versions of them. - Also clarify isl dynamic libraries are needed in cross builds, but not in native builds - Since aeb3d8c (bzip2: fix cross build on mingw by using autoconf patch), it seems that the bzip2 binary depends on libbz2 when cross compiling. So copy libbz2 into the bootstrap tarball as well. - Curl isn't used in the bootstrap tools since e6f61b4cf3388.
This commit is contained in:
parent
953249db34
commit
9f0dc294da
@ -74,15 +74,13 @@ let
|
|||||||
gcc = pkgs.gcc.cc.crossDrv;
|
gcc = pkgs.gcc.cc.crossDrv;
|
||||||
gmpxx = pkgs.gmpxx.crossDrv;
|
gmpxx = pkgs.gmpxx.crossDrv;
|
||||||
mpfr = pkgs.mpfr.crossDrv;
|
mpfr = pkgs.mpfr.crossDrv;
|
||||||
ppl = pkgs.ppl.crossDrv;
|
|
||||||
cloogppl = pkgs.cloogppl.crossDrv;
|
|
||||||
cloog = pkgs.cloog.crossDrv;
|
|
||||||
zlib = pkgs.zlib.crossDrv;
|
zlib = pkgs.zlib.crossDrv;
|
||||||
isl = pkgs.isl.crossDrv;
|
|
||||||
libmpc = pkgs.libmpc.crossDrv;
|
libmpc = pkgs.libmpc.crossDrv;
|
||||||
binutils = pkgs.binutils.crossDrv;
|
binutils = pkgs.binutils.crossDrv;
|
||||||
libelf = pkgs.libelf.crossDrv;
|
libelf = pkgs.libelf.crossDrv;
|
||||||
|
|
||||||
|
# Keep these versions in sync with the versions used in the current GCC!
|
||||||
|
isl = pkgs.isl_0_14.crossDrv;
|
||||||
in
|
in
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
@ -94,12 +92,6 @@ rec {
|
|||||||
singleBinary = "symlinks";
|
singleBinary = "symlinks";
|
||||||
})).crossDrv;
|
})).crossDrv;
|
||||||
|
|
||||||
curlMinimal = (pkgs.curl.override {
|
|
||||||
zlibSupport = false;
|
|
||||||
sslSupport = false;
|
|
||||||
scpSupport = false;
|
|
||||||
}).crossDrv;
|
|
||||||
|
|
||||||
busyboxMinimal = (pkgs.busybox.override {
|
busyboxMinimal = (pkgs.busybox.override {
|
||||||
# TBD: uClibc is broken.
|
# TBD: uClibc is broken.
|
||||||
# useUclibc = true;
|
# useUclibc = true;
|
||||||
@ -172,8 +164,6 @@ rec {
|
|||||||
cp -d ${gnumake}/bin/* $out/bin
|
cp -d ${gnumake}/bin/* $out/bin
|
||||||
cp -d ${patch}/bin/* $out/bin
|
cp -d ${patch}/bin/* $out/bin
|
||||||
cp ${patchelf}/bin/* $out/bin
|
cp ${patchelf}/bin/* $out/bin
|
||||||
cp ${curlMinimal}/bin/curl $out/bin
|
|
||||||
cp -d ${curlMinimal}/lib/libcurl* $out/lib
|
|
||||||
|
|
||||||
cp -d ${gnugrep.pcre.crossDrv}/lib/libpcre*.so* $out/lib # needed by grep
|
cp -d ${gnugrep.pcre.crossDrv}/lib/libpcre*.so* $out/lib # needed by grep
|
||||||
|
|
||||||
@ -206,10 +196,13 @@ rec {
|
|||||||
cp -d ${zlib.out}/lib/libz.so* $out/lib
|
cp -d ${zlib.out}/lib/libz.so* $out/lib
|
||||||
cp -d ${libelf}/lib/libelf.so* $out/lib
|
cp -d ${libelf}/lib/libelf.so* $out/lib
|
||||||
|
|
||||||
# TBD: Why are these needed for cross but not native tools?
|
# These needed for cross but not native tools because the stdenv
|
||||||
cp -d ${cloogppl}/lib/libcloog*.so* $out/lib
|
# GCC has certain things built in statically. See
|
||||||
cp -d ${cloog}/lib/libcloog*.so* $out/lib
|
# pkgs/stdenv/linux/default.nix for the details.
|
||||||
cp -d ${isl}/lib/libisl*.so* $out/lib
|
cp -d ${isl}/lib/libisl*.so* $out/lib
|
||||||
|
# Also this is needed since bzip2 uses a custom build system
|
||||||
|
# for native builds but autoconf (via a patch) for cross builds
|
||||||
|
cp -d ${bzip2}/lib/libbz2.so* $out/lib
|
||||||
|
|
||||||
# Copy binutils.
|
# Copy binutils.
|
||||||
for i in as ld ar ranlib nm strip readelf objdump; do
|
for i in as ld ar ranlib nm strip readelf objdump; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user