aboutsummaryrefslogtreecommitdiffstats
path: root/testing/monero/disable-aes-on-s390x.patch
blob: 7dfa50ec3b3481b9b4c61fcd5185b9b221c65e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
this patch needs to be changed in next release as git already changed

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d53e04..7e3dd2c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,6 +90,10 @@ if(ARCH_ID STREQUAL "ppc64le")
   set(PPC64LE 1)
 endif()
 
+if(ARCH_ID STREQUAL "s390x")
+  set(S390X 1)
+endif()
+
 if(WIN32 OR ARM)
   set(OPT_FLAGS_RELEASE "-O2")
 else()
@@ -451,10 +455,12 @@ else()
 
   option(NO_AES "Explicitly disable AES support" ${NO_AES})
 
-  if(NOT NO_AES AND NOT ARM AND NOT PPC64LE)
+  if(NOT NO_AES AND NOT ARM AND NOT PPC64LE AND NOT S390X)
     message(STATUS "AES support enabled")
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
+  elseif(S390X)
+    message(STATUS "AES support not available on s390x")
   elseif(PPC64LE)
     message(STATUS "AES support not available on ppc64le")
   elseif(ARM6)