summaryrefslogtreecommitdiff
path: root/multimedia/vobsub2srt/vobsub2srt-c++11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vobsub2srt/vobsub2srt-c++11.patch')
-rw-r--r--multimedia/vobsub2srt/vobsub2srt-c++11.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/vobsub2srt/vobsub2srt-c++11.patch b/multimedia/vobsub2srt/vobsub2srt-c++11.patch
new file mode 100644
index 0000000000..3f2b6e44bb
--- /dev/null
+++ b/multimedia/vobsub2srt/vobsub2srt-c++11.patch
@@ -0,0 +1,11 @@
+-- vobsub2srt/CMakeLists.txt.org 2018-12-29 09:08:18.308882020 +0100
++++ vobsub2srt/CMakeLists.txt 2018-12-29 09:08:01.435614925 +0100
+@@ -54,7 +54,7 @@
+ include(CheckCXXSourceRuns)
+
+ set(CMAKE_C_FLAGS "-std=gnu99")
+-set(CMAKE_CXX_FLAGS "-ansi -pedantic -Wall -Wextra -Wno-long-long")
++set(CMAKE_CXX_FLAGS "-ansi -pedantic -Wall -Wextra -Wno-long-long -std=gnu++11")
+
+ set(CMAKE_CXX_FLAGS_RELEASE "-O3 -mtune=native -march=native -DNDEBUG -fomit-frame-pointer -ffast-math") # TODO -Ofast GCC 4.6
+ set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})