diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-06-26 19:45:19 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-06-27 07:01:28 +0000 |
commit | b3e7edae85ec70e30c155c5bffd64a0cc5c95036 (patch) | |
tree | e6a9df603b24c98f0f5eee25617a17d45fd024b7 /testing/monero/fix-build-flags-for-ppc64le.patch | |
parent | 954e69dd43a81fc435d87b3a5bf1f8020a9b4af3 (diff) | |
download | aports-b3e7edae85ec70e30c155c5bffd64a0cc5c95036.tar.bz2 aports-b3e7edae85ec70e30c155c5bffd64a0cc5c95036.tar.xz |
testing/monero: fix build on ppc64le
Fix invalid flags for ppc64le
Diffstat (limited to 'testing/monero/fix-build-flags-for-ppc64le.patch')
-rw-r--r-- | testing/monero/fix-build-flags-for-ppc64le.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/monero/fix-build-flags-for-ppc64le.patch b/testing/monero/fix-build-flags-for-ppc64le.patch new file mode 100644 index 0000000000..573e268bed --- /dev/null +++ b/testing/monero/fix-build-flags-for-ppc64le.patch @@ -0,0 +1,31 @@ +--- monero-0.10.3.1/CMakeLists.txt ++++ monero-0.10.3.1/CMakeLists.txt +@@ -82,6 +82,10 @@ + set(ARM8 1) + endif() + ++if(ARCH_ID STREQUAL "ppc64le") ++ set(PPC64LE 1) ++endif() ++ + if(WIN32 OR ARM) + set(OPT_FLAGS_RELEASE "-O2") + else() +@@ -379,6 +383,8 @@ + message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}") + if(ARCH STREQUAL "default") + set(ARCH_FLAG "") ++ elseif(PPC64LE) ++ set(ARCH_FLAG "-mcpu=${ARCH}") + else() + set(ARCH_FLAG "-march=${ARCH}") + endif() +@@ -435,7 +441,7 @@ + + option(NO_AES "Explicitly disable AES support" ${NO_AES}) + +- if(NOT NO_AES AND NOT ARM) ++ if(NOT NO_AES AND NOT ARM AND NOT PPC64LE) + message(STATUS "AES support enabled") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes") |