aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-09-23 00:11:13 +0200
committerLudovic Courtès <ludo@gnu.org>2019-09-23 00:11:13 +0200
commit27130ee8f7339d0eb84e87d620015dc493a566ff (patch)
treeb75f6e5bcfff4922951a8ab78854b4a7fe221ba3
parent1f78a9996428fe0082eacd55767397f4f5a7758a (diff)
downloadguix-27130ee8f7339d0eb84e87d620015dc493a566ff.tar
guix-27130ee8f7339d0eb84e87d620015dc493a566ff.tar.gz
gnu: libsmpeg: Fix build failure with GCC 7.
* gnu/packages/video.scm (libsmpeg)[arguments]: New field.
-rw-r--r--gnu/packages/video.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b6c32fabdb..11219589b6 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2515,6 +2515,10 @@ Other features include a live preview and live streaming.")
(base32
"18yfkr70lr1x1hc8snn2ldnbzdcc7b64xmkqrfk8w59gpg7sl1xn"))))
(build-system gnu-build-system)
+ (arguments
+ ;; libsmpeg fails to build with -std=c++11, which is the default with
+ ;; GCC 7. Also, 'configure' does CXXFLAGS=$CFLAGS, hence this hack.
+ '(#:configure-flags '("CFLAGS=-O2 -g -std=c++03")))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)))