diff options
author | Marius Bakke <[email protected]> | 2020-03-11 22:58:11 +0100 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2020-03-11 22:58:11 +0100 |
commit | 41c6e4f2b40f41cdbf4e8c7ade29845709f9cdf4 (patch) | |
tree | f496dcc2b11819f691cfe6063c52894f2ca76823 /gnu/packages/admin.scm | |
parent | 4510aeb91ce6267a14c9cead768869553b3a2279 (diff) | |
parent | 58363ee50096fd02743ff6d62ee1125fc440625f (diff) |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r-- | gnu/packages/admin.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 51a74302e4..0f27e6370b 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2017 Ben Sturmfels <[email protected]> ;;; Copyright © 2017 Ethan R. Jones <[email protected]> ;;; Copyright © 2017 Christopher Allan Webber <[email protected]> -;;; Copyright © 2017, 2018 Marius Bakke <[email protected]> +;;; Copyright © 2017, 2018, 2020 Marius Bakke <[email protected]> ;;; Copyright © 2018, 2019 Arun Isaac <[email protected]> ;;; Copyright © 2018 Pierre-Antoine Rouby <[email protected]> ;;; Copyright © 2018 Rutger Helling <[email protected]> @@ -809,12 +809,17 @@ connection alive.") (("^RELEASEVER=.*") (format #f "RELEASEVER=~a\n" ,bind-release-version))) #t)) - (add-before 'configure 'fix-bind-cross-compilation - (lambda _ - (substitute* "configure" - (("--host=\\$host") - "--host=$host_alias")) - #t)) + ,@(if (%current-target-system) + '((add-before 'configure 'fix-bind-cross-compilation + (lambda _ + (substitute* "configure" + (("--host=\\$host") + "--host=$host_alias")) + ;; BIND needs a native compiler because the DHCP + ;; build system uses the built 'gen' executable. + (setenv "BUILD_CC" "gcc") + #t))) + '()) (add-after 'configure 'post-configure (lambda* (#:key outputs #:allow-other-keys) ;; Point to the right client script, which will be |