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>
This commit is contained in:
Kefu Chai 2019-07-02 23:33:30 +08:00
parent beb0c343b3
commit 2fa4013818

View File

@ -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