summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-im/qtox/files/cflags.patch12
-rw-r--r--net-im/qtox/qtox-scm.ebuild1
2 files changed, 13 insertions, 0 deletions
diff --git a/net-im/qtox/files/cflags.patch b/net-im/qtox/files/cflags.patch
new file mode 100644
index 0000000..a972949
--- /dev/null
+++ b/net-im/qtox/files/cflags.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 92b128ff..aeaa5ab5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -56,7 +56,6 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
+ set(POSITION_INDEPENDENT_CODE True)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-overflow")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-aliasing")
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
+
+ if (NOT WIN32)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
diff --git a/net-im/qtox/qtox-scm.ebuild b/net-im/qtox/qtox-scm.ebuild
index a836836..3fc92ad 100644
--- a/net-im/qtox/qtox-scm.ebuild
+++ b/net-im/qtox/qtox-scm.ebuild
@@ -49,6 +49,7 @@ DEPEND="${RDEPEND}
PATCHES=(
"$FILESDIR"/gcc.patch
+ "$FILESDIR"/cflags.patch
)
src_prepare() {