From: Philippe Coval Date: Mon, 5 Dec 2016 16:07:21 +0000 (+0100) Subject: build: Fix to also support SECURED=0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e41639bc77f71340ca41e34a722edd183ba76ce;p=contrib%2Fiotivity.git build: Fix to also support SECURED=0 Note, for later it would be nice to test booleans instead of strings. Change-Id: I069d865c6e2cc6a80a812e60ab278af15b7eaa85 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/15163 Tested-by: jenkins-iotivity Reviewed-by: Habib Virji (cherry picked from commit f50bc6c417731a023d5bb1774ee2ecf84a7b5dca) Reviewed-on: https://gerrit.iotivity.org/gerrit/15225 --- diff --git a/build_common/SConscript b/build_common/SConscript index 5776fd9..61e45df 100644 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -343,10 +343,10 @@ elif env.get('ROUTING') == 'EP': libs = [] if env.get('WITH_TCP'): defines.append('-DTCP_ADAPTER=1') - if env.get('SECURED'): + if env.get('SECURED') == '1': defines.append('-D__WITH_TLS__=1') -if env.get('SECURED'): +if env.get('SECURED') == '1': libs.append('-locpmapi') defines.append('-D_WITH_DTLS_=1')