summaryrefslogtreecommitdiff
path: root/guix/build-system/gnu.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-02-21 22:46:03 +0100
committerLudovic Courtès <ludo@gnu.org>2021-02-21 22:47:55 +0100
commit1209447ad3f471d12e9408dd478b3cfcd7b7a07e (patch)
tree925c97e2d9e7a5735c306635034c47047b009929 /guix/build-system/gnu.scm
parentf49c13f1833f0db5a5ddcb751c16f6e9ed56355f (diff)
build-system/gnu: Disable 'ld.so.cache' generation when cross-compiling.
* guix/build-system/gnu.scm (gnu-cross-build): Change #:make-dynamic-linker-cache? to #f.
Diffstat (limited to 'guix/build-system/gnu.scm')
-rw-r--r--guix/build-system/gnu.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index abff7d6998..fc045f10c9 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -506,7 +506,12 @@ is one of `host' or `target'."
(strip-directories ''("lib" "lib64" "libexec"
"bin" "sbin"))
(validate-runpath? #t)
- (make-dynamic-linker-cache? #t)
+
+ ;; We run 'ldconfig' to generate ld.so.cache and it
+ ;; generally can't do that for cross-built binaries
+ ;; ("ldconfig: foo.so is for unknown machine 40.").
+ (make-dynamic-linker-cache? #f)
+
(license-file-regexp %license-file-regexp)
(phases '%standard-phases)
(locale "en_US.utf8")