summaryrefslogtreecommitdiffstats
path: root/cmake/modules/BuildBoost.cmake
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-07-02 17:33:30 +0200
committerKefu Chai <kchai@redhat.com>2019-07-02 17:40:21 +0200
commit2fa4013818a7d627a8e3c9dc51cbef524ea2ac2a (patch)
tree95eea74b9a73fc70dd2891b0e09505bd7c04e9cf /cmake/modules/BuildBoost.cmake
parentMerge pull request #28800 from tchaikov/wip-crimson-mkfs (diff)
downloadceph-2fa4013818a7d627a8e3c9dc51cbef524ea2ac2a.tar.xz
ceph-2fa4013818a7d627a8e3c9dc51cbef524ea2ac2a.zip
cmake/modules/BuildBoost.cmake: fix build for armhf
see also https://www.boost.org/doc/libs/1_70_0/libs/context/doc/html/context/architectures.html Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'cmake/modules/BuildBoost.cmake')
-rw-r--r--cmake/modules/BuildBoost.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake
index 92ba07be1c7..dc80c3f1351 100644
--- a/cmake/modules/BuildBoost.cmake
+++ b/cmake/modules/BuildBoost.cmake
@@ -125,7 +125,11 @@ function(do_build_boost version)
if(with_python_version)
list(APPEND b2 python=${with_python_version})
endif()
-
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|ARM")
+ list(APPEND b2 abi=aapcs)
+ list(APPEND b2 architecture=arm)
+ list(APPEND b2 binary-format=elf)
+ endif()
set(build_command
${b2} headers stage
#"--buildid=ceph" # changes lib names--can omit for static