mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
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:
parent
2c93e9de7c
commit
fc8061dae4
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue