gcc: Fix deps, for cross and consistency
Mainly making sure we have tools to build target libs
This commit is contained in:
parent
114a9b6253
commit
9cda2f5559
@ -233,8 +233,18 @@ stdenv.mkDerivation ({
|
|||||||
nativeBuildInputs = [ texinfo which gettext ]
|
nativeBuildInputs = [ texinfo which gettext ]
|
||||||
++ optional (perl != null) perl;
|
++ optional (perl != null) perl;
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf ]
|
# For building runtime libs
|
||||||
++ (optional (ppl != null) ppl)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (ppl != null) ppl)
|
||||||
++ (optional (cloogppl != null) cloogppl)
|
++ (optional (cloogppl != null) cloogppl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optional langJava boehmgc)
|
++ (optional langJava boehmgc)
|
||||||
|
@ -267,8 +267,18 @@ stdenv.mkDerivation ({
|
|||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf ]
|
# For building runtime libs
|
||||||
++ (optional (cloog != null) cloog)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (cloog != null) cloog)
|
||||||
++ (optional (isl != null) isl)
|
++ (optional (isl != null) isl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
|
@ -49,9 +49,6 @@ assert libelf != null -> zlib != null;
|
|||||||
# Make sure we get GNU sed.
|
# Make sure we get GNU sed.
|
||||||
assert hostPlatform.isDarwin -> gnused != null;
|
assert hostPlatform.isDarwin -> gnused != null;
|
||||||
|
|
||||||
# Need c++filt on darwin
|
|
||||||
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
|
|
||||||
|
|
||||||
# The go frontend is written in c++
|
# The go frontend is written in c++
|
||||||
assert langGo -> langCC;
|
assert langGo -> langCC;
|
||||||
|
|
||||||
@ -282,8 +279,18 @@ stdenv.mkDerivation ({
|
|||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf ]
|
# For building runtime libs
|
||||||
++ (optional (isl != null) isl)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (isl != null) isl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
|
@ -49,9 +49,6 @@ assert libelf != null -> zlib != null;
|
|||||||
# Make sure we get GNU sed.
|
# Make sure we get GNU sed.
|
||||||
assert hostPlatform.isDarwin -> gnused != null;
|
assert hostPlatform.isDarwin -> gnused != null;
|
||||||
|
|
||||||
# Need c++filt on darwin
|
|
||||||
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
|
|
||||||
|
|
||||||
# The go frontend is written in c++
|
# The go frontend is written in c++
|
||||||
assert langGo -> langCC;
|
assert langGo -> langCC;
|
||||||
|
|
||||||
@ -281,8 +278,18 @@ stdenv.mkDerivation ({
|
|||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf ]
|
# For building runtime libs
|
||||||
++ (optional (isl != null) isl)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (isl != null) isl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
|
@ -50,9 +50,6 @@ assert libelf != null -> zlib != null;
|
|||||||
# Make sure we get GNU sed.
|
# Make sure we get GNU sed.
|
||||||
assert hostPlatform.isDarwin -> gnused != null;
|
assert hostPlatform.isDarwin -> gnused != null;
|
||||||
|
|
||||||
# Need c++filt on darwin
|
|
||||||
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
|
|
||||||
|
|
||||||
# The go frontend is written in c++
|
# The go frontend is written in c++
|
||||||
assert langGo -> langCC;
|
assert langGo -> langCC;
|
||||||
|
|
||||||
@ -278,8 +275,18 @@ stdenv.mkDerivation ({
|
|||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf flex ]
|
# For building runtime libs
|
||||||
++ (optional (isl != null) isl)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf flex
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (isl != null) isl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
|
@ -50,9 +50,6 @@ assert libelf != null -> zlib != null;
|
|||||||
# Make sure we get GNU sed.
|
# Make sure we get GNU sed.
|
||||||
assert hostPlatform.isDarwin -> gnused != null;
|
assert hostPlatform.isDarwin -> gnused != null;
|
||||||
|
|
||||||
# Need c++filt on darwin
|
|
||||||
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
|
|
||||||
|
|
||||||
# The go frontend is written in c++
|
# The go frontend is written in c++
|
||||||
assert langGo -> langCC;
|
assert langGo -> langCC;
|
||||||
|
|
||||||
@ -265,8 +262,18 @@ stdenv.mkDerivation ({
|
|||||||
++ (optional (perl != null) perl)
|
++ (optional (perl != null) perl)
|
||||||
++ (optional javaAwtGtk pkgconfig);
|
++ (optional javaAwtGtk pkgconfig);
|
||||||
|
|
||||||
buildInputs = [ gmp mpfr libmpc libelf flex ]
|
# For building runtime libs
|
||||||
++ (optional (isl != null) isl)
|
depsBuildTarget =
|
||||||
|
if hostPlatform == buildPlatform then [
|
||||||
|
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
|
||||||
|
] else assert targetPlatform == hostPlatform; [ # build != host == target
|
||||||
|
stdenv.cc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gmp mpfr libmpc libelf flex
|
||||||
|
targetPackages.stdenv.cc.bintools # For linking code at run-time
|
||||||
|
] ++ (optional (isl != null) isl)
|
||||||
++ (optional (zlib != null) zlib)
|
++ (optional (zlib != null) zlib)
|
||||||
++ (optionals langJava [ boehmgc zip unzip ])
|
++ (optionals langJava [ boehmgc zip unzip ])
|
||||||
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user