]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake/modules/BuildBoost.cmake: fix build for armhf 28843/head
authorKefu Chai <kchai@redhat.com>
Tue, 2 Jul 2019 15:33:30 +0000 (23:33 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Jul 2019 15:40:21 +0000 (23:40 +0800)
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>
cmake/modules/BuildBoost.cmake

index 92ba07be1c7241631331503db7faf979a45beaa3..dc80c3f135125b50c2fe1a74758207df31f14af7 100644 (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