aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/boost.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2018-12-05 01:28:00 -0500
committerLeo Famulari <leo@famulari.name>2018-12-07 19:42:59 -0500
commitb9103c827c605dee32baf62816a0429543b3e451 (patch)
tree4ddf47b57942a049c6cde51a2c81e4e4be999618 /gnu/packages/boost.scm
parent23a1f738b1ef83c3dcb329e1c68617b0452e6a07 (diff)
downloadpatches-b9103c827c605dee32baf62816a0429543b3e451.tar
patches-b9103c827c605dee32baf62816a0429543b3e451.tar.gz
gnu: Add a C++14 variant of Boost for packages that need it.
Fixes <https://bugs.gnu.org/33605> and <https://bugs.gnu.org/33610>. * gnu/packages/boost.scm (boost-cxx14): New variable. * gnu/packages/compression.scm (innoextract)[inputs]: Use it. * gnu/packages/mpd.scm (ncmpcpp)[inputs]: Use it.
Diffstat (limited to 'gnu/packages/boost.scm')
-rw-r--r--gnu/packages/boost.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index b772781f56..f9108b3ad6 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -122,6 +122,16 @@ across a broad spectrum of applications.")
(license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"
"Some components have other similar licences."))))
+;; Some programs need Boost to be built with C++14 support.
+(define-public boost-cxx14
+ (package (inherit boost)
+ (arguments
+ (substitute-keyword-arguments (package-arguments boost)
+ ((#:make-flags flags)
+ `(append ,flags
+ '("cxxflags=-std=c++14")))))
+ (properties '((hidden? . #t)))))
+
(define-public boost-for-mysql
;; Older version for MySQL 5.7.23.
(package