percona-xtrabackup_2_4: add -fcommon workaround

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

    ld: xbstream.c.o:(.bss+0x0): multiple definition of
      `datasink_buffer'; ds_buffer.c.o:(.data.rel.local+0x0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 20:23:12 +01:00
parent 2c93e9de7c
commit fc8061dae4

View file

@ -25,6 +25,11 @@ stdenv.mkDerivation rec {
patches = extraPatches;
# Workaround build failure on -fno-common toolchains:
# ld: xbstream.c.o:(.bss+0x0): multiple definition of
# `datasink_buffer'; ds_buffer.c.o:(.data.rel.local+0x0): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
cmakeFlags = [
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DBUILD_CONFIG=xtrabackup_release"