Fixed a build issue noticed on the mailing list with lib CA
authorSachin Agrawal <sachin.agrawal@intel.com>
Fri, 1 May 2015 16:31:09 +0000 (09:31 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 1 May 2015 17:47:01 +0000 (17:47 +0000)
As reported by Gabriel Schulhof on the mailing list, he had
an issue compiling liboctbstack directly.  This patch was
submitted by him via the mailing list.

Change-Id: I2083a8875baddabfa6df6287074639f437cfda60
Signed-off-by: Erich Keane <erich.keane@intel.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/875
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
resource/csdk/SConscript

index 931b184..27a8393 100644 (file)
@@ -71,13 +71,16 @@ if target_os == 'arduino':
        liboctbstack_env.AppendUnique(CPPDEFINES = ['NDEBUG', 'WITH_ARDUINO'])
 elif target_os not in ['darwin','ios']:
        liboctbstack_env.AppendUnique(CFLAGS = ['-fPIC'])
-if target_os == 'android':     
+if target_os in ['android', 'linux']:
        liboctbstack_env.AppendUnique(LIBS = ['connectivity_abstraction'])
 if target_os in ['darwin', 'ios']:
        liboctbstack_env.AppendUnique(CPPDEFINES = ['_DARWIN_C_SOURCE'])
        liboctbstack_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
        liboctbstack_env.AppendUnique(LIBS = ['coap'])
 
+if env.get('SECURED') == '1':
+       liboctbstack_env.AppendUnique(LIBS = ['tinydtls'])
+
 if env.get('LOGGING'):
        liboctbstack_env.AppendUnique(CPPDEFINES = ['TB_LOG'])