diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-29 16:01:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-29 16:01:04 +0000 |
commit | 5580257e0e8d058d1ad258c0e73d7f86033953ec (patch) | |
tree | 78219332cd676f1ca131076fc434544c4d52a6ae /pkgs/servers/mail | |
parent | c2934244fc4cc8a18b714c38b58963868d084afa (diff) | |
parent | 84fad7bf602a98707f489180f39dce128e3c8bc8 (diff) |
Merge pull request #173725 from trofi/workaround-fno-common-for-dspam
dspam: add -fcommon workaround
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r-- | pkgs/servers/mail/dspam/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/mail/dspam/default.nix b/pkgs/servers/mail/dspam/default.nix index 8d73542bec688..e2388e6a94916 100644 --- a/pkgs/servers/mail/dspam/default.nix +++ b/pkgs/servers/mail/dspam/default.nix @@ -53,6 +53,12 @@ in stdenv.mkDerivation rec { ] ++ lib.optional withMySQL "--with-mysql-includes=${mysql57.connector-c}/include/mysql" ++ lib.optional withPgSQL "--with-pgsql-libraries=${postgresql.lib}/lib"; + # Workaround build failure on -fno-common toolchains like upstream + # gcc-10. Otherwise build fails as: + # ld: .libs/hash_drv.o:/build/dspam-3.10.2/src/util.h:96: multiple definition of `verified_user'; + # .libs/libdspam.o:/build/dspam-3.10.2/src/util.h:96: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + # Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR" # and fix directory structure manually after that. installFlags = [ "DESTDIR=$(out)" ]; |