Merge pull request #173715 from trofi/workaround-fno-common-for-dibbler

dibbler: add -fcommon workaround
This commit is contained in:
Anderson Torres
2022-05-29 20:59:29 -03:00
committed by GitHub
+5 -1
View File
@@ -13,7 +13,11 @@ stdenv.mkDerivation rec {
"--enable-resolvconf"
];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1";
# -fcommon: Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: ./Port-linux/libLowLevel.a(libLowLevel_a-interface.o):(.bss+0x4): multiple definition of `interface_auto_up';
# ./Port-linux/libLowLevel.a(libLowLevel_a-lowlevel-linux-link-state.o):(.bss+0x74): first defined here
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1" + " -fcommon";
meta = with lib; {
description = "Portable DHCPv6 implementation";