me
/
guix
Archived
1
0
Fork 0

gnu: jemalloc: Fix building on powerpc-linux.

* gnu/packages/jemalloc.scm (jemalloc)[arguments]: Change configure-flags
so they are configurable per-architecture.
master
Efraim Flashner 2021-06-01 16:11:10 +03:00
parent 9ba35475ed
commit 0fdf2cdef0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> ;;; 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> ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -21,6 +21,7 @@
(define-module (gnu packages jemalloc) (define-module (gnu packages jemalloc)
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1)
#:use-module (srfi srfi-26) #:use-module (srfi srfi-26)
#:use-module (ice-9 match)
#:use-module ((guix licenses) #:select (bsd-2)) #:use-module ((guix licenses) #:select (bsd-2))
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
@ -52,12 +53,14 @@
(substitute* "Makefile.in" (substitute* "Makefile.in"
(("\\$\\(srcroot\\)test/unit/pages.c \\\\") "\\")) (("\\$\\(srcroot\\)test/unit/pages.c \\\\") "\\"))
#t))) #t)))
,@(if (any (cute string-prefix? <> (or (%current-target-system) #:configure-flags
(%current-system))) '(,@(match (%current-system)
'("x86_64" "i686")) ((or "i686-linux" "x86_64-linux")
;; Transparent huge pages are only enabled by default on Intel processors '())
'() ("powerpc-linux"
'(#:configure-flags (list "--disable-thp"))))) (list "--disable-thp" "CPPFLAGS=-maltivec"))
(_
(list "--disable-thp"))))))
(inputs `(("perl" ,perl))) (inputs `(("perl" ,perl)))
;; Install the scripts to a separate output to avoid referencing Perl and ;; Install the scripts to a separate output to avoid referencing Perl and
;; Bash in the default output, saving ~75 MiB on the closure. ;; Bash in the default output, saving ~75 MiB on the closure.