unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68133] [PATCH] gnu: glew: Fix cross-compiling.
@ 2023-12-30  4:53 Zheng Junjie
  2024-01-03 14:25 ` Mathieu Othacehe
  0 siblings, 1 reply; 6+ messages in thread
From: Zheng Junjie @ 2023-12-30  4:53 UTC (permalink / raw)
  To: 68133

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 192b5e84e0..56a1def37a 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -690,7 +690,12 @@ (define-public glew
                   #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

base-commit: f76ca2b0e894c244d5011a32b30dee8fd874e322
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-10 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30  4:53 [bug#68133] [PATCH] gnu: glew: Fix cross-compiling Zheng Junjie
2024-01-03 14:25 ` Mathieu Othacehe
2024-01-04 12:40   ` Zheng Junjie
2024-01-09  9:35     ` bug#68133: " Mathieu Othacehe
2024-01-10 12:19       ` [bug#68133] [PATCH] gnu: mesa: Fix cross-compiling again Z572
2024-01-10 14:30         ` Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).