aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorZheng Junjie <873216071@qq.com>2023-07-17 12:10:55 +0800
committer宋文武 <iyzsong@member.fsf.org>2024-03-19 18:35:18 +0800
commit3c46191abd0ab1e6cf24ddfedafbd9b646989f5c (patch)
treef141e8a362503d518524b830cf21d422bccb09bb /gnu/packages
parent697db5938d591f32d30eba1d80af7283ce48cf4c (diff)
downloadguix-3c46191abd0ab1e6cf24ddfedafbd9b646989f5c.tar.gz
guix-3c46191abd0ab1e6cf24ddfedafbd9b646989f5c.zip
gnu: quickjs: Fix building on riscv64-linux.
* gnu/packages/javascript.scm (quickjs)[arguments]: Adjust make-flags when building for riscv64-linux to link with '-latomic'. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Change-Id: Ic66874191985c877f5fb648b37e241bff3f16084
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/javascript.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 84d12f6b13..3ec1e5c5a5 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2021 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022 Frank Pursel <frank.pursel@gmail.com>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -837,7 +838,8 @@ roots, or wrestle with obscure build systems.")
(arguments
`(#:make-flags
(list "prefix="
- (string-append "DESTDIR=" %output))
+ (string-append "DESTDIR=" %output)
+ ,@(if (target-riscv64?) '("LDFLAGS=-latomic") '()))
#:phases
(modify-phases %standard-phases
(delete 'configure)