summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-11-25 09:36:32 +0200
committerEfraim Flashner <efraim@flashner.co.il>2019-11-25 14:08:31 +0200
commit31872b3e75da777c3f02b7544808d30849a56d7b (patch)
tree71406bd370d31aa4777995c00059642ffbefdc1f /gnu
parent775373b872df7b2e00232e72715dda0ada89e876 (diff)
downloadpatches-31872b3e75da777c3f02b7544808d30849a56d7b.tar
patches-31872b3e75da777c3f02b7544808d30849a56d7b.tar.gz
gnu: Add boost-static.
* gnu/packages/boost.scm (boost-static): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/boost.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index 2ef0591223..0a2a5c5c01 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -178,6 +178,23 @@ across a broad spectrum of applications.")
(symlink "libboost_python37.so" "libboost_python3.so"))
#t)))))))))
+(define-public boost-static
+ (package
+ (inherit boost)
+ (name "boost-static")
+ (arguments
+ (substitute-keyword-arguments (package-arguments boost)
+ ((#:make-flags flags)
+ `(cons "link=static" (delete "link=shared" ,flags)))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'provide-libboost_python
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-directory-excursion (string-append out "/lib")
+ (symlink "libboost_python27.a" "libboost_python.a"))
+ #t)))))))))
+
(define-public boost-for-mysql
;; Older version for MySQL 5.7.23.
(package