Merge pull request #174033 from trofi/workaround-fno-common-for-ossec

ossec: add -fcommon workaround
This commit is contained in:
Sandro 2022-05-25 00:34:48 +02:00 committed by GitHub
commit c69120e987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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