From: Joseph Morrow Date: Wed, 22 Apr 2015 18:33:36 +0000 (-0400) Subject: Added rpath location to C++ SDK sample applications build. X-Git-Tag: 0.9.1~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37b6344cb60ca7b2132358a6156ff90f280b505b;p=contrib%2Fiotivity.git Added rpath location to C++ SDK sample applications build. By adding the "run-time search path" to the build flags, this tells the application where to search for the needed libraries at run time. This removes the need to export the output directory for the libraries into LD_LIBRARY_PATH when executing the sample applications. Change-Id: Ic0c35cd0f79d35e7e89113735e9f9a23c6466943 Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/809 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- diff --git a/resource/examples/SConscript b/resource/examples/SConscript index b72435a..1be8651 100644 --- a/resource/examples/SConscript +++ b/resource/examples/SConscript @@ -49,6 +49,7 @@ if target_os not in ['windows', 'winrt']: examples_env.AppendUnique(LIBS = ['-lpthread']) examples_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')]) +examples_env.AppendUnique(RPATH = [env.get('BUILD_DIR')]) examples_env.PrependUnique(LIBS = ['oc', 'octbstack', 'oc_logger', 'connectivity_abstraction', 'coap']) if env.get('SECURED') == '1': examples_env.AppendUnique(LIBS = ['tinydtls'])