diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-07 21:06:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 21:06:46 +0000 |
commit | 089050964d977837516118f68db84a44fe75365f (patch) | |
tree | 8e53f30e6e49c8ccb63999b81c12fde8f7a83664 /pkgs/development/libraries/physics | |
parent | 033da0465f4f73406dc59b804e577c10fac31932 (diff) | |
parent | 46e4f3bd77559fe6edb366551530fe50a774849f (diff) |
Merge pull request #176427 from trofi/workaround-fno-common-for-cernlib
cernlib: add -fcommon workaround
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r-- | pkgs/development/libraries/physics/cernlib/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/cernlib/default.nix b/pkgs/development/libraries/physics/cernlib/default.nix index ca328e2bac46a..77ad6e201a32b 100644 --- a/pkgs/development/libraries/physics/cernlib/default.nix +++ b/pkgs/development/libraries/physics/cernlib/default.nix @@ -53,6 +53,11 @@ stdenv.mkDerivation rec { NIX_CFLAGS = [ "-Wno-return-type" ]; + # Workaround build failure on -fno-common toolchains: + # ld: libpacklib.a(kedit.o):kuip/klink1.h:11: multiple definition of `klnkaddr'; + # libzftplib.a(zftpcdf.o):zftp/zftpcdf.c:155: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + makeFlags = [ "FORTRANOPTIONS=$(FFLAGS)" "CCOPTIONS=$(NIX_CFLAGS)" |