diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-07-22 19:06:15 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-07-28 12:44:49 +0200 |
commit | 1508ea570843dd585dabbebac517256c29b6c436 (patch) | |
tree | d195a55fc444588930cb533b8b04c98922eeaa5f | |
parent | d3e05d191f9c56819b613b16c61974e5f3dc9967 (diff) | |
download | nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar.gz nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar.bz2 nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar.lz nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar.xz nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.tar.zst nixpkgs-1508ea570843dd585dabbebac517256c29b6c436.zip |
gnat{6,9,10,11}: don't build libada when building a cross compiler
According to https://wiki.osdev.org/GNAT_Cross-Compiler building libada is not possible when building a cross compiler. Unfortunately I haven't been able to determine if this is upstream's position as well, but sure enough disabling libada lets us build a GNAT cross compiler.
-rw-r--r-- | pkgs/development/compilers/gcc/common/configure-flags.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/compilers/gcc/common/configure-flags.nix b/pkgs/development/compilers/gcc/common/configure-flags.nix index 997771c2abf..1d75966797b 100644 --- a/pkgs/development/compilers/gcc/common/configure-flags.nix +++ b/pkgs/development/compilers/gcc/common/configure-flags.nix @@ -170,8 +170,11 @@ let "--enable-cloog-backend=isl" ] - # Ada options - ++ lib.optional langAda "--enable-libada" + # Ada options, gcc can't build the runtime library for a cross compiler + ++ lib.optional langAda + (if hostPlatform == targetPlatform + then "--enable-libada" + else "--disable-libada") # Java options ++ lib.optionals langJava [ |