mariadb: build server with NUMA

This commit is contained in:
Izorkin 2020-02-06 14:25:28 +03:00
parent e4f17a2b17
commit c6d159d696

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig, makeWrapper, ncurses, zlib, xz, lzo, lz4, bzip2, snappy
, libiconv, openssl, pcre, boost, judy, bison, libxml2, libkrb5, linux-pam, curl
, libaio, libevent, jemalloc, cracklib, systemd, numactl, perl
, libaio, libevent, jemalloc, cracklib, systemd, perl
, fixDarwinDylibNames, cctools, CoreServices, less
, numactl # NUMA Support
, withoutClient ? false
}:
@ -164,6 +165,8 @@ server = stdenv.mkDerivation (common // {
"-DWITH_INNODB_DISALLOW_WRITES=ON"
"-DWITHOUT_EXAMPLE=1"
"-DWITHOUT_FEDERATED=1"
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) [
"-DWITH_NUMA=ON"
] ++ optionals withoutClient [
"-DWITHOUT_CLIENT=ON"
] ++ optionals stdenv.hostPlatform.isDarwin [