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 | |
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')
-rw-r--r-- | testing/monero/APKBUILD | 10 | ||||
-rw-r--r-- | testing/monero/fix-build-flags-for-ppc64le.patch | 31 |
2 files changed, 37 insertions, 4 deletions
diff --git a/testing/monero/APKBUILD b/testing/monero/APKBUILD index 86e9d3f405..29475e5c25 100644 --- a/testing/monero/APKBUILD +++ b/testing/monero/APKBUILD @@ -9,9 +9,10 @@ arch="all" license="BSD" makedepends="unbound-dev libressl-dev boost-dev miniupnpc-dev cmake" source="$pkgname-$pkgver.tar.gz::https://github.com/monero-project/$pkgname/archive/v$pkgver.tar.gz - easylogging.patch - libunwind.patch - " + easylogging.patch + libunwind.patch + fix-build-flags-for-ppc64le.patch + " builddir="$srcdir/"$pkgname-$pkgver build() { @@ -29,4 +30,5 @@ package() { sha512sums="6856e6078eee5a9036cf7276490a00121b6670b417fd9d8ba8360746af320813fb26f3021079483a61a4bb0179627cfe687435a4146a4ce3cf4d4ad5d500ea95 monero-0.10.3.1.tar.gz 9d431f87fae5d1fd0d7bb893164c8124bebf682bd3c14b1c4143091837912e36830aa462b05505637f1583595e6259b2d3bbef4706f8875b7ae24c3d0515b255 easylogging.patch -7dba2020c7cd8e6bcaad778089c4f28132a27c8a18db656c08ab112f81b0faab0eb6aa27f5eafe33f604599db687297627f78cc3ee89f61538007cf8d9c13a42 libunwind.patch" +7dba2020c7cd8e6bcaad778089c4f28132a27c8a18db656c08ab112f81b0faab0eb6aa27f5eafe33f604599db687297627f78cc3ee89f61538007cf8d9c13a42 libunwind.patch +854d44aee308a5c86e51553767e2b58b25713a7ef9a2ed8650b00d8372f2c19a2d451b87463799495c627b3c133a8c5f1013cdf145c68a82a241b3cfa26b3ec4 fix-build-flags-for-ppc64le.patch" 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") |