media-video/avidemux: Fix building with GCC-5
authorPeter Levine <plevine457@gmail.com>
Sun, 1 Oct 2017 23:56:04 +0000 (19:56 -0400)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 4 Oct 2017 08:01:43 +0000 (10:01 +0200)
Force -std=c++14 since the build uses a header with 'nullptr' which is invalid in GCC-5's default -std=c++98 dialect.

Package-Manager: Portage-2.3.10, Repoman-2.3.3

media-video/avidemux/avidemux-2.6.20.ebuild
media-video/avidemux/avidemux-9999.ebuild

index 5227e4fdf241be8788d268e0de947eb2b41820c2..72ad632f69699c9876c5ae2fb34e2996f9cf9a58 100644 (file)
@@ -81,6 +81,10 @@ src_configure() {
        # See bug 432322.
        use x86 && replace-flags -O0 -O1
 
+       # The build relies on an avidemux-core header that uses 'nullptr'
+       # which is from >=C++11.  Let's use the GCC-6 default C++ dialect.
+       append-cxxflags -std=c++14
+
        local mycmakeargs=(
                -DAVIDEMUX_SOURCE_DIR='${S}'
                -DGETTEXT="$(usex nls)"
index 5227e4fdf241be8788d268e0de947eb2b41820c2..72ad632f69699c9876c5ae2fb34e2996f9cf9a58 100644 (file)
@@ -81,6 +81,10 @@ src_configure() {
        # See bug 432322.
        use x86 && replace-flags -O0 -O1
 
+       # The build relies on an avidemux-core header that uses 'nullptr'
+       # which is from >=C++11.  Let's use the GCC-6 default C++ dialect.
+       append-cxxflags -std=c++14
+
        local mycmakeargs=(
                -DAVIDEMUX_SOURCE_DIR='${S}'
                -DGETTEXT="$(usex nls)"