Compilation fix for protocol plugin app on Ubuntu14.10
authorHabib Virji <habib.virji@samsung.com>
Fri, 1 May 2015 12:28:54 +0000 (13:28 +0100)
committerUze Choi <uzchoi@samsung.com>
Wed, 6 May 2015 09:19:03 +0000 (09:19 +0000)
Compilation of mqtt sample app was failing as pthread was included in
LIBS but should be appended after connectivity_abstraction as it depends on the pthread library.

Change-Id: Ie1019c5ba4b31a06f7e25a3e2ce338ea21c91b52
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/881
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/protocol-plugin/sample-app/linux/SConscript

index e30b177..5c35aa1 100644 (file)
@@ -35,10 +35,10 @@ sample_env.AppendUnique(CPPPATH = [
                                '../../plugin-manager/src/',
                                '../../lib/cpluff/libcpluff/',
                                env.get('SRC_DIR') + '/extlibs/rapidxml/'])
+
 if target_os not in ['windows', 'winrt']:
        sample_env.AppendUnique(CXXFLAGS = ['-Wall', '-pthread', '-std=c++0x'])
 
-sample_env.AppendUnique(LIBS = ['pthread'])
 sample_env.AppendUnique(LIBS = ['oc', 'oc_logger', 'octbstack',
                                 'connectivity_abstraction', 'coap',
                                 'ppm', 'pmimpl', 'dl'])
@@ -51,6 +51,7 @@ if env.get('SECURED') == '1':
 if 'rt' in sample_env.get('LIBS'):
     sample_env.Append(LIBS = ['rt'])
 
+sample_env.AppendUnique(LIBS = ['pthread'])
 ######################################################################
 # Source files and Targets
 ######################################################################