3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #176453 from trofi/workaround-fno-common-for-percona-xtrabackup_2_4

percona-xtrabackup_2_4: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-06 07:11:34 +00:00 committed by GitHub
commit 441d55e6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"