commit:     0909a91fd455dec082971e05e04c94fe6571827c
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sat Feb  4 09:27:07 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 09:27:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0909a91f

net-p2p/feather: stop monero from setting -march flag

Closes: https://bugs.gentoo.org/893198
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>

 net-p2p/feather/files/monero_remove_cflags-2.2.3.patch | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/net-p2p/feather/files/monero_remove_cflags-2.2.3.patch 
b/net-p2p/feather/files/monero_remove_cflags-2.2.3.patch
index 5ae53dd88..23360c817 100644
--- a/net-p2p/feather/files/monero_remove_cflags-2.2.3.patch
+++ b/net-p2p/feather/files/monero_remove_cflags-2.2.3.patch
@@ -1,6 +1,15 @@
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -901,9 +901,9 @@
+@@ -773,8 +773,6 @@
+     message(STATUS "AES support disabled")
+   endif()
+
+-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_FLAG}")
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}")
+
+   set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings 
-Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter 
-Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized")
+   if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES 
"Clang")
+@@ -901,9 +899,9 @@
    message(STATUS "Using C++ security hardening flags: ${CXX_SECURITY_FLAGS}")
    message(STATUS "Using linker security hardening flags: 
${LD_SECURITY_FLAGS}")
 

Reply via email to