3
0
Fork 0
forked from mirrors/nixpkgs

ucarp: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: daemonize.o:/build/ucarp-1.5.2/src/ip_carp.h:73: multiple definition of
      `__packed'; ucarp.o:/build/ucarp-1.5.2/src/ip_carp.h:73: first defined here
This commit is contained in:
Sergei Trofimovich 2022-05-30 07:01:41 +01:00
parent 1b36442421
commit 1322160a35

View file

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libpcap ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: daemonize.o:/build/ucarp-1.5.2/src/ip_carp.h:73: multiple definition of
# `__packed'; ucarp.o:/build/ucarp-1.5.2/src/ip_carp.h:73: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
meta = with lib; {
description = "Userspace implementation of CARP";
longDescription = ''