diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-04 06:51:44 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-04 06:51:58 +0100 |
commit | 6f86eabf6d48afb2d8de263c202c409aa854679e (patch) | |
tree | d00489d5f6582e5c90b0886aa5fb2dd5c36a009a /pkgs/development | |
parent | bd7aa1e1bff5bc8319168849d5a3bdb8c5be8ccd (diff) |
eli: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/eli/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/eli/default.nix b/pkgs/development/compilers/eli/default.nix index 8920e34b6ee1d..869d7fdeedf33 100644 --- a/pkgs/development/compilers/eli/default.nix +++ b/pkgs/development/compilers/eli/default.nix @@ -54,6 +54,9 @@ stdenv.mkDerivation rec { # skip interactive browser check buildFlags = [ "nobrowsers" ]; + # Workaround build failure on -fno-common toolchains: + # ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; preConfigure='' configureFlagsArray=( |