guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 8db2010070175562f6cd9e9a12440a24bcc1cde9
Author: Herman Rimm <[email protected]>
AuthorDate: Mon Mar 17 11:49:16 2025 +0100
gnu: lua-bitop: Fix cross compilation.
* gnu/packages/lua.scm (lua-bitop)[arguments]: Use G-expressions.
<make-flags>: Set CC.
Merges: https://codeberg.org/guix/guix/pulls/10665
Signed-off-by: Nguyễn Gia Phong <[email protected]>
---
gnu/packages/lua.scm | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 16f0e7ff354..a7e567d3eba 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -1402,17 +1402,19 @@ Grammars (PEGs).")
"16fffbrgfcw40kskh2bn9q7m3gajffwd2f35rafynlnd7llwj1qj"))))
(build-system gnu-build-system)
(arguments
- `(#:test-target "test"
- #:make-flags
- (list "INSTALL=install -pD"
- (string-append "INSTALLPATH=printf "
- (assoc-ref %outputs "out")
- "/lib/lua/"
- ,(this-lua-version)
- "/bit/bit.so"))
- #:phases
- (modify-phases %standard-phases
- (delete 'configure))))
+ (list
+ #:test-target "test"
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ "INSTALL=install -pD"
+ (string-append "INSTALLPATH=printf "
+ #$output
+ "/lib/lua/"
+ #$(this-lua-version)
+ "/bit/bit.so"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure))))
(inputs (list lua))
(home-page "https://bitop.luajit.org/index.html")
(synopsis "Bitwise operations on numbers for Lua")