aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/admin.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r--gnu/packages/admin.scm11
1 files changed, 10 insertions, 1 deletions
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 @@ system administrator.")
;; 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 <http://bugs.gnu.org/21918>.
#:parallel-build? #f