mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: libtorrent-rasterbar: Compile Python bindings in C++11 mode.
* gnu/packages/bittorrent.scm (libtorrent-rasterbar)[arguments]: Add phase to substitute setup.py. Co-authored-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
8afe166dd7
commit
39da44c2c0
1 changed files with 13 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
|
||||
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
||||
;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -393,7 +394,18 @@ (define-public libtorrent-rasterbar
|
|||
"CXXFLAGS=-std=c++11") ; Use std::chrono instead of boost
|
||||
#:make-flags (list
|
||||
(string-append "LDFLAGS=-Wl,-rpath="
|
||||
(assoc-ref %outputs "out") "/lib"))))
|
||||
(assoc-ref %outputs "out") "/lib"))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after 'unpack 'compile-python-c++11
|
||||
(lambda _
|
||||
;; Make sure the Python bindings are compiled in C++ mode to
|
||||
;; avoid undefined references as mentioned in
|
||||
;; <https://github.com/qbittorrent/qBittorrent/issues/638>.
|
||||
;; XXX: This can be removed for 1.2+.
|
||||
(substitute* "bindings/python/setup.py"
|
||||
(("\\+ target_specific\\(\\)\\,")
|
||||
"+ target_specific() + ['-std=c++11'],"))
|
||||
#t)))))
|
||||
(inputs `(("boost" ,boost)
|
||||
("openssl" ,openssl)))
|
||||
(native-inputs `(("python" ,python-2)
|
||||
|
|
Loading…
Reference in a new issue