aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-05-12 22:34:50 +0200
committerLudovic Courtès <ludo@gnu.org>2021-05-13 00:19:58 +0200
commit3320b70f4dbb9bd8d4f782975111f32d0d045edb (patch)
treee7aa22be6073c6b3a01813bb5894fc85645001b1 /gnu
parentd6aeebb23639258311fdfb9dbf5f903079fde51a (diff)
downloadguix-3320b70f4dbb9bd8d4f782975111f32d0d045edb.tar
guix-3320b70f4dbb9bd8d4f782975111f32d0d045edb.tar.gz
gnu: libgc: Add variant with '--disable-munmap'.
* gnu/packages/bdw-gc.scm (libgc/disable-munmap): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bdw-gc.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 50e4951dc1..ecac5b9368 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2016, 2017, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2016, 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
@@ -85,6 +85,17 @@ C or C++ programs, though that is not its primary goal.")
(license (x11-style (string-append home-page "license.txt")))))
+(define-public libgc/disable-munmap
+ ;; TODO: Use '--disable-munmap' by default on next rebuild cycle.
+ (package/inherit libgc
+ (arguments
+ ;; Work around <https://github.com/ivmai/bdwgc/issues/353>.
+ (substitute-keyword-arguments (package-arguments libgc)
+ ((#:configure-flags flags ''())
+ `(cons "--disable-munmap" ,flags))))
+ (properties `((hidden? . #t)
+ ,@(package-properties libgc)))))
+
;; TODO: Add a static output in libgc in the next rebuild cycle.
(define-public libgc/static-libs
(package/inherit