summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2023-12-30 12:53:29 +0800
committerMathieu Othacehe <othacehe@gnu.org>2024-01-03 15:32:01 +0100
commite2ad70c951c0c8a79883fe232afa0ae88a6f1d84 (patch)
tree40e4e8e4c748afbe9a4bf304d6329057a9975c71
parent5312b63ea0032648316b7cfad947d6d1cdb99ed1 (diff)
gnu: glew: Fix cross-compiling.
gnu/packages/gl.scm(glew): [arguments]<#:make-flags>: when cross-compiling, use {cc,strip}-for-target. Change-Id: I365f6635120a85359083beb88cb138f09a99fe33
-rw-r--r--gnu/packages/gl.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 2c109ee124..b0ee413acd 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -690,7 +690,12 @@ glxdemo, glxgears, glxheads, and glxinfo.")
#t))))
(build-system gnu-build-system)
(arguments
- (list #:make-flags #~(list (string-append "GLEW_PREFIX=" #$output)
+ (list #:make-flags #~(list #$@(if (%current-target-system)
+ #~((string-append "CC=" #$(cc-for-target))
+ (string-append "LD=" #$(cc-for-target))
+ (string-append "STRIP=" #$(strip-for-target)))
+ #~())
+ (string-append "GLEW_PREFIX=" #$output)
(string-append "GLEW_DEST=" #$output))
#:phases
#~(modify-phases %standard-phases