mariadb: fix build on x86_64-darwin
This commit is contained in:
@@ -116,9 +116,14 @@ let
|
|||||||
prePatch = ''
|
prePatch = ''
|
||||||
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
|
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
|
||||||
'';
|
'';
|
||||||
env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) {
|
env =
|
||||||
|
lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) {
|
||||||
# MariaDB uses non-POSIX fopen64, which musl only conditionally defines.
|
# MariaDB uses non-POSIX fopen64, which musl only conditionally defines.
|
||||||
NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE";
|
NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) {
|
||||||
|
# Detection of netdb.h doesnt work for some reason on x86_64-darwin
|
||||||
|
NIX_CFLAGS_COMPILE = "-DHAVE_NETDB_H";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|||||||
Reference in New Issue
Block a user