From db90b27976387040e64eec33146f661f5416fb10 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Tue, 3 Jun 2025 20:32:30 +0000 Subject: [PATCH] nixVersions.nix_2_24: fix build against lowdown 2.0.2 --- pkgs/tools/package-management/nix/common-autoconf.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/package-management/nix/common-autoconf.nix b/pkgs/tools/package-management/nix/common-autoconf.nix index 6f9b4fef5747..894380f71cf0 100644 --- a/pkgs/tools/package-management/nix/common-autoconf.nix +++ b/pkgs/tools/package-management/nix/common-autoconf.nix @@ -254,6 +254,14 @@ let "--enable-lto" ]; + env.CXXFLAGS = toString ( + lib.optionals (lib.versionAtLeast lowdown.version "1.4.0") [ + # Autotools based build system wasn't updated with the backport of + # https://github.com/NixOS/nix/pull/12115, so set the define explicitly. + "-DHAVE_LOWDOWN_1_4" + ] + ); + makeFlags = [ # gcc runs multi-threaded LTO using make and does not yet detect the new fifo:/path style # of make jobserver. until gcc adds support for this we have to instruct make to use this