From: Kefu Chai Date: Tue, 2 Jul 2019 15:33:30 +0000 (+0800) Subject: cmake/modules/BuildBoost.cmake: fix build for armhf X-Git-Tag: v15.1.0~2263^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2fa4013818a7d627a8e3c9dc51cbef524ea2ac2a;p=ceph.git 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 --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 92ba07be1c72..dc80c3f13512 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