[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: gnu: jemalloc: Fix building on powerpc-linu
From: |
guix-commits |
Subject: |
branch core-updates updated: gnu: jemalloc: Fix building on powerpc-linux. |
Date: |
Tue, 01 Jun 2021 10:08:12 -0400 |
This is an automated email from the git hooks/post-receive script.
efraim pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new 0fdf2cd gnu: jemalloc: Fix building on powerpc-linux.
0fdf2cd is described below
commit 0fdf2cdef0c0ab8a43a539e2917d82c8ee4c4e73
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 1 16:11:10 2021 +0300
gnu: jemalloc: Fix building on powerpc-linux.
* gnu/packages/jemalloc.scm (jemalloc)[arguments]: Change configure-flags
so they are configurable per-architecture.
---
gnu/packages/jemalloc.scm | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/jemalloc.scm b/gnu/packages/jemalloc.scm
index 906330a..96713db 100644
--- a/gnu/packages/jemalloc.scm
+++ b/gnu/packages/jemalloc.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
-;;; Copyright © 2017, 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
;;;
;;; This file is part of GNU Guix.
@@ -21,6 +21,7 @@
(define-module (gnu packages jemalloc)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
+ #:use-module (ice-9 match)
#:use-module ((guix licenses) #:select (bsd-2))
#:use-module (guix packages)
#:use-module (guix download)
@@ -52,12 +53,14 @@
(substitute* "Makefile.in"
(("\\$\\(srcroot\\)test/unit/pages.c \\\\") "\\"))
#t)))
- ,@(if (any (cute string-prefix? <> (or (%current-target-system)
- (%current-system)))
- '("x86_64" "i686"))
- ;; Transparent huge pages are only enabled by default on Intel
processors
- '()
- '(#:configure-flags (list "--disable-thp")))))
+ #:configure-flags
+ '(,@(match (%current-system)
+ ((or "i686-linux" "x86_64-linux")
+ '())
+ ("powerpc-linux"
+ (list "--disable-thp" "CPPFLAGS=-maltivec"))
+ (_
+ (list "--disable-thp"))))))
(inputs `(("perl" ,perl)))
;; Install the scripts to a separate output to avoid referencing Perl and
;; Bash in the default output, saving ~75 MiB on the closure.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: gnu: jemalloc: Fix building on powerpc-linux.,
guix-commits <=