Fix build error for tizen in secured mode for TARGET_TRANSPORT = ALL 35/236735/1
authorsourav bhuwalka <s.bhuwalka@samsung.com>
Tue, 9 Jun 2020 12:02:43 +0000 (17:32 +0530)
committerSudipto <sudipto.bal@samsung.com>
Fri, 19 Jun 2020 17:15:04 +0000 (22:45 +0530)
Adding pthread libs in the Sconscript where it was missing

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/711
(cherry-picked from 0ee5e7151d1438559e642818a2b7cee5704aefd4)

Change-Id: I8fe8993965016026e3d3b672696a638c67b32c39
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/security/tool/SConscript
resource/provisioning/SConscript

index 6aee4b54e4d9ba072c681ff1c2d804f92622958f..5471c75535f5fef42d6b619a2a0b9b9dafdac7dc 100644 (file)
@@ -54,6 +54,9 @@ tools_env.AppendUnique(RPATH = [tools_env.get('BUILD_DIR')])
 tools_env.AppendUnique(LIBPATH = [tools_env.get('BUILD_DIR')])
 tools_env.PrependUnique(LIBS = ['oc', 'octbstack', 'mbedtls', 'mbedx509', 'mbedcrypto'])
 
+if target_os in ['tizen']:
+        tools_env.AppendUnique(LIBS = ['pthread'])
+
 if tools_env.get('MULTIPLE_OWNER') == '1':
        tools_env.AppendUnique(CPPDEFINES=['MULTIPLE_OWNER'])
 
index 25d067c1ab9b71f53404fd50edfe8c10c2319946..e3bb396f75c8759a04fa5981e02f12cb3f3a2cc5 100644 (file)
@@ -71,6 +71,9 @@ if target_os in ['darwin', 'ios']:
        ocprovision_env.AppendUnique(LIBPATH = [ocprovision_env.get('BUILD_DIR')])
        ocprovision_env.AppendUnique(LIBS = ['octbstack', 'oc_logger'])
 
+if target_os in ['tizen']:
+        ocprovision_env.AppendUnique(LIBS = ['pthread'])
+
 ######################################################################
 # Source files and Targets
 ######################################################################