From e1076e934666193a0e68883c8de21bad45b44cdc Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 12 Jun 2022 02:00:01 +0200 Subject: [PATCH] gnu: duktape: Cross-compile. * gnu/packages/javascript.scm (duktape)[arguments]: Use CC-FOR-TARGET. --- gnu/packages/javascript.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 1d571a1c72..666a0aa421 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -835,7 +835,11 @@ Javascript and a small built-in standard library with C library wrappers.") ;; XXX Replace with #$output on core-updates. #$(if (%current-target-system) #~#$output - #~%output))) + #~%output)) + ;; XXX Unconditionally set to CC-FOR-TARGET on core-updates. + #$@(if (%current-target-system) + #~((string-append "CC=" #$(cc-for-target))) + #~())) #:phases #~(modify-phases %standard-phases (delete 'configure)