diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index cb0ef85c54..f842abea78 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2072,7 +2072,16 @@ (define-public sudo ;; provide it. (string-append "CPPFLAGS=-D_PATH_MV=\\\"" (assoc-ref %build-inputs "coreutils") - "/bin/mv\\\"")) + "/bin/mv\\\"") + + ;; When cross-compiling, assume we have a working 'snprintf' and + ;; 'vsnprintf' (which we do, when using glibc). The default + ;; choice fails with undefined references to 'sudo_snprintf' & + ;; co. when linking. + ,@(if (%current-target-system) + '("ac_cv_have_working_snprintf=yes" + "ac_cv_have_working_vsnprintf=yes") + '())) ;; Avoid non-determinism; see . #:parallel-build? #f