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
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
|
||||||
c-ares
|
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 {
|
src = fetchFromGitHub {
|
||||||
owner = "sipwise";
|
owner = "sipwise";
|
||||||
|
|
Loading…
Reference in a new issue