[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: libgc: Fix building on powerpc-linux.
From: |
guix-commits |
Subject: |
02/03: gnu: libgc: Fix building on powerpc-linux. |
Date: |
Thu, 30 Mar 2023 12:56:51 -0400 (EDT) |
efraim pushed a commit to branch core-updates
in repository guix.
commit 1bd8dadbe46e3ca0559ef46ae2c9a3a008a88027
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 30 19:32:35 2023 +0300
gnu: libgc: Fix building on powerpc-linux.
* gnu/pakcages/bdw-gc.scm (libgc)[arguments]: When building for
powerpc-linux add a make-flag to not protect virtual-dirty bits.
---
gnu/packages/bdw-gc.scm | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index b788c3288e..5ff4649716 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -64,12 +64,17 @@
(%current-target-system)))
#~("--disable-gcj-support")
#~())))
- (if (target-ppc64le?)
- (list #:make-flags
- ;; This is a known workaround upstream.
- ;; https://github.com/ivmai/bdwgc/issues/479
- #~(list "CFLAGS_EXTRA=-DNO_SOFT_VDB"))
- '())))
+ (cond
+ ((target-ppc64le?)
+ (list #:make-flags
+ ;; This is a known workaround upstream.
+ ;; https://github.com/ivmai/bdwgc/issues/479
+ #~(list "CFLAGS_EXTRA=-DNO_SOFT_VDB")))
+ ((target-ppc32?)
+ (list #:make-flags
+ ;; Similar to above.
+ #~(list "CFLAGS_EXTRA=-DNO_MPROTECT_VDB")))
+ (else '()))))
(native-inputs (list pkg-config))
(propagated-inputs
(if (%current-target-system)