From a2c3537be7d765d54b6b032b5adb801fe7f8bbdc Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 24 Apr 2018 13:10:57 +0300 Subject: qtox: build fix --- net-im/qtox/files/cflags.patch | 12 ++++++++++++ net-im/qtox/qtox-scm.ebuild | 1 + 2 files changed, 13 insertions(+) create mode 100644 net-im/qtox/files/cflags.patch 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() { -- cgit v1.2.3