forked from mirrors/nixpkgs
sipsak: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: transport.o:/build/source/sipsak.h:323: multiple definition of `address'; auth.o:/build/source/sipsak.h:323: first defined here
This commit is contained in:
parent
0831857a14
commit
260e65d337
|
@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
|
|||
c-ares
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "--std=gnu89";
|
||||
# -fcommon: workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: transport.o:/build/source/sipsak.h:323: multiple definition of
|
||||
# `address'; auth.o:/build/source/sipsak.h:323: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu89 -fcommon";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sipwise";
|
||||
|
|
Loading…
Reference in a new issue