gnu: gst-kaldi-nnet2-online: Adjust for GCC 7.
* gnu/packages/machine-learning.scm (gst-kaldi-nnet2-online)[arguments]: Don't read CPLUS_INCLUDE_PATH, or pass -std=c++11. End phases on #t.master
parent
344f358fba
commit
ad60a3484c
|
@ -1139,16 +1139,16 @@ written in C++.")
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((glib (assoc-ref inputs "glib")))
|
(let ((glib (assoc-ref inputs "glib")))
|
||||||
(setenv "CXXFLAGS" "-std=c++11 -fPIC")
|
(setenv "CXXFLAGS" "-fPIC")
|
||||||
(setenv "CPLUS_INCLUDE_PATH"
|
(setenv "CPLUS_INCLUDE_PATH"
|
||||||
(string-append glib "/include/glib-2.0:"
|
(string-append glib "/include/glib-2.0:"
|
||||||
glib "/lib/glib-2.0/include:"
|
glib "/lib/glib-2.0/include:"
|
||||||
(assoc-ref inputs "gstreamer")
|
(assoc-ref inputs "gstreamer")
|
||||||
"/include/gstreamer-1.0:"
|
"/include/gstreamer-1.0")))
|
||||||
(getenv "CPLUS_INCLUDE_PATH"))))
|
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("include \\$\\(KALDI_ROOT\\)/src/kaldi.mk") "")
|
(("include \\$\\(KALDI_ROOT\\)/src/kaldi.mk") "")
|
||||||
(("\\$\\(error Cannot find") "#"))))
|
(("\\$\\(error Cannot find") "#"))
|
||||||
|
#t))
|
||||||
(add-before 'build 'build-depend
|
(add-before 'build 'build-depend
|
||||||
(lambda* (#:key make-flags #:allow-other-keys)
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(apply invoke "make" "depend" make-flags)))
|
(apply invoke "make" "depend" make-flags)))
|
||||||
|
|
Reference in New Issue