emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#68133: closed ([PATCH] gnu: glew: Fix cross-compiling.)


From: GNU bug Tracking System
Subject: bug#68133: closed ([PATCH] gnu: glew: Fix cross-compiling.)
Date: Tue, 09 Jan 2024 09:37:02 +0000

Your message dated Tue, 09 Jan 2024 10:35:45 +0100
with message-id <87edeqdf2m.fsf@gnu.org>
and subject line Re: [bug#68133] [PATCH] gnu: glew: Fix cross-compiling.
has caused the debbugs.gnu.org bug report #68133,
regarding [PATCH] gnu: glew: Fix cross-compiling.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
68133: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68133
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: glew: Fix cross-compiling. Date: Sat, 30 Dec 2023 12:53:29 +0800
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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#68133] [PATCH] gnu: glew: Fix cross-compiling. Date: Tue, 09 Jan 2024 10:35:45 +0100 User-agent: Gnus/5.13 (Gnus v5.13)
Hello,

> * gnu/packages/gl.scm(mesa)[native-inputs]: when cross-compile, add
> cmake-minimal-cross.
> [arguments]: adjust fix-cross-compiling to find llvm.
>
> * gnu/packages/llvm.scm(llvm-for-mesa)
> [arguments]<#:configure-flags>: When cross-compile, set
> -DBUILD_SHARED_LIBS:BOOL=TRUE and -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE,
> remove -DLLVM_LINK_LLVM_DYLIB.* .
> <#:phases>: when cross-compile, remove delete-static-libraries phase.

I amended the commit message and applied,

Thanks,

Mathieu


--- End Message ---

reply via email to

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