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.
This commit is contained in:
Efraim Flashner 2023-03-30 19:32:35 +03:00
parent dbc96f451c
commit 1bd8dadbe4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -64,12 +64,17 @@ (define-public libgc
(%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)