IOT-2489 build: fix android arm64-v8a build 17/21317/3
authorGeorge Nash <george.nash@intel.com>
Fri, 7 Jul 2017 19:24:54 +0000 (12:24 -0700)
committerRick Bell <richard.s.bell@intel.com>
Sat, 8 Jul 2017 01:13:44 +0000 (01:13 +0000)
Fix boost build when building for arm64.

Bug: https://jira.iotivity.org/browse/IOT-2489
Change-Id: I8224b2a6c30a8517f3a9334b6aaf8145c695494f
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21317
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
tools/scons/BoostBuild.py

index b0d53e0..7756568 100644 (file)
@@ -115,6 +115,10 @@ def __action( target, source, env ) :
 
     build_path = 'build' + os.sep + target_os + os.sep + target_arch
 
+    if env.get('TARGET_ARCH') in ['arm64-v8a']:
+        cmd.append('architecture=arm')
+        cmd.append('address-model=64')
+
     cmd.append('-q')
     cmd.append('target-os=linux')
     cmd.append('link=static')