summary refs log tree commit diff
path: root/gnu/packages/javascript.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-06-12 02:00:01 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2022-06-12 02:00:00 +0200
commite1076e934666193a0e68883c8de21bad45b44cdc (patch)
tree0f453bf3e1266a83f8c4311cb056b203b225624c /gnu/packages/javascript.scm
parent2c975efe836e83333d4decb87577a6ff9857c4a5 (diff)
downloadguix-e1076e934666193a0e68883c8de21bad45b44cdc.tar.gz
gnu: duktape: Cross-compile.
* gnu/packages/javascript.scm (duktape)[arguments]: Use CC-FOR-TARGET.
Diffstat (limited to 'gnu/packages/javascript.scm')
-rw-r--r--gnu/packages/javascript.scm6
1 files changed, 5 insertions, 1 deletions
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)