ossec: add -fcommon workaround

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

    ld: src/common/mgmt/pint-worker-external.po:(.data.rel.local+0x0): multiple definition of
      `PINT_worker_external_impl'; src/common/mgmt/pint-mgmt.po:(.bss+0x20): first defined here
This commit is contained in:
Sergei Trofimovich 2022-05-22 18:42:58 +01:00
parent e04ca59317
commit 75b764a8c0

View file

@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
patches = [ ./no-root.patch ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: src/common/mgmt/pint-worker-external.po:(.data.rel.local+0x0): multiple definition of
# `PINT_worker_external_impl'; src/common/mgmt/pint-mgmt.po:(.bss+0x20): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildPhase = ''
echo "en