From 1bd8dadbe46e3ca0559ef46ae2c9a3a008a88027 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 30 Mar 2023 19:32:35 +0300 Subject: 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(-) (limited to 'gnu/packages/bdw-gc.scm') 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) -- cgit v1.2.3