[IOT-1578] Fix OSx build with SECURED=1 option
authorGeorge Nash <george.nash@intel.com>
Wed, 23 Nov 2016 18:49:15 +0000 (10:49 -0800)
committerRick Bell <richard.s.bell@intel.com>
Mon, 5 Dec 2016 19:11:06 +0000 (19:11 +0000)
Add the symbols for mBedTLS if building a secure build

Change-Id: Ibbe2387307bc432193daaa2b7f88491cb18687bd
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14687
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
build_common/darwin/SConscript

index 06fdac6..ec2b28e 100644 (file)
@@ -62,6 +62,9 @@ else:
 if env.get('LOGGING'):
     env.AppendUnique(CPPDEFINES = ['TB_LOG'])
 
+if env.get('SECURED') == '1':
+       env.AppendUnique(LIBS = ['mbedtls', 'mbedx509', 'mbedcrypto'])
+
 if target_os == 'darwin':
        sys_root = tc_path + '/Platforms/MacOSX.platform/Developer/SDKs/MacOSX' + sys_version + '.sdk/'
 else: