diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index a0999cb477..51b2cb3267 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès +;;; Copyright © 2012-2021, 2023 Ludovic Courtès ;;; Copyright © 2017, 2021 Efraim Flashner ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2019 Mark H Weaver @@ -706,6 +706,14 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." ;; doesn't try to link using libtool, and thus fails ;; because of a missing -ldl. Work around that. `(list "LDFLAGS=-ldl" "--enable-mini-gmp" + + ;; Guile does an LTO build by default, but in 3.0.9 it + ;; wrongfully picks 'ar' instead of 'gcc-ar', so work around + ;; it (see ). + ,@(if (version-prefix? "3.0" (package-version guile)) + '("AR=gcc-ar" "RANLIB=gcc-ranlib") + '()) + ,@(if (hurd-target?) '("--disable-jit") '())))