Merge pull request #176114 from trofi/workaround-fno-common-for-webos.novacomd

webos.novacomd: add -fcommon workaround
This commit is contained in:
Sandro
2022-06-03 17:01:39 +02:00
committed by GitHub
@@ -29,6 +29,11 @@ stdenv.mkDerivation rec {
buildInputs = [ libusb-compat-0_1 ];
# Workaround build failure on -fno-common toolchains:
# ld: src/host/usb-linux.c:82: multiple definition of `t_recovery_queue';
# src/host/recovery.c:45: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
cmakeFlags = [ "-DWEBOS_TARGET_MACHINE_IMPL=host" ];
meta = with lib; {