manta: make it build on aarch64 (#22630)

This commit is contained in:
Tomoyasu Nojiri 2021-04-08 23:16:30 +09:00 committed by GitHub
parent 68cec598dc
commit a0f9ffd80c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- spack-src/src/cmake/boost.cmake.bak 2019-06-29 07:04:47.000000000 +0900
+++ spack-src/src/cmake/boost.cmake 2021-03-30 11:36:39.000000000 +0900
@@ -168,6 +168,8 @@
message (FATAL_ERROR "Failed to unpack boost library ${THIS_BOOST_VERSION}")
endif ()
execute_process(
+ COMMAND "sed" -i "s/-m64//g" ${BOOST_BUILD_DIR}/boost_1_58_0/tools/build/src/tools/gcc.jam)
+ execute_process(
COMMAND ${CMAKE_COMMAND} -E touch "${BOOST_BUILD_DIR}/boost_unpack_complete")
endif ()

View file

@ -22,3 +22,5 @@ class Manta(CMakePackage):
depends_on('cmake@2.8.12:', type='build')
depends_on('python@2.7.0:2.7.999', type=('build', 'run'))
depends_on('zlib')
patch('for_aarch64.patch', when='target=aarch64:')