guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/08: gnu: glew: Fix cross-compiling.


From: guix-commits
Subject: 01/08: gnu: glew: Fix cross-compiling.
Date: Wed, 3 Jan 2024 09:32:27 -0500 (EST)

mothacehe pushed a commit to branch master
in repository guix.

commit e2ad70c951c0c8a79883fe232afa0ae88a6f1d84
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Sat Dec 30 12:53:29 2023 +0800

    gnu: glew: Fix cross-compiling.
    
    gnu/packages/gl.scm(glew):
    [arguments]<#:make-flags>: when cross-compiling, use {cc,strip}-for-target.
    
    Change-Id: I365f6635120a85359083beb88cb138f09a99fe33
---
 gnu/packages/gl.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]