Merge pull request #176427 from trofi/workaround-fno-common-for-cernlib
cernlib: add -fcommon workaround
This commit is contained in:
commit
089050964d
1 changed files with 5 additions and 0 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue