Merge pull request #175432 from trofi/workaround-fno-common-for-ucarp

ucarp: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-05-30 17:30:53 +00:00 committed by GitHub
commit f1c167688a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = ''