Merge pull request #166534 from vcunat/p/powerdns-32bit

powerdns: fix 32-bit builds against glibc
This commit is contained in:
Guillaume Girol 2022-04-05 19:42:04 +00:00 committed by GitHub
commit 45a5514f55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
libyamlcpp libsodium curl unixODBC openssl systemd lmdb tinycdb
];
# Configure phase requires 64-bit time_t even on 32-bit platforms.
NIX_CFLAGS_COMPILE = lib.optionals stdenv.hostPlatform.is32bit [
"-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64"
];
configureFlags = [
"--disable-silent-rules"
"--enable-dns-over-tls"