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:
Sergei Trofimovich 2022-05-29 07:55:56 +01:00
parent 0831857a14
commit 260e65d337

View file

@ -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";